~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/named_savepoint.cc

  • Committer: Mark Atwood
  • Date: 2011-07-13 22:28:29 UTC
  • mfrom: (2318.7.25 refactor1)
  • Revision ID: me@mark.atwood.name-20110713222829-sswp061b5ts7tc1k
mergeĀ lp:~olafvdspek/drizzle/refactor1

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
{
28
28
  NamedSavepoint::NamedSavepoint(const NamedSavepoint &other)
29
29
  {
30
 
    name.assign(other.getName());
31
 
    const TransactionContext::ResourceContexts &other_resource_contexts= other.getResourceContexts();
32
 
    resource_contexts.assign(other_resource_contexts.begin(), other_resource_contexts.end());
33
 
    if (other.getTransactionMessage() != NULL)
34
 
    {
35
 
      transaction_message= new message::Transaction(*other.getTransactionMessage());
36
 
    }
37
 
    else 
38
 
    {
39
 
      transaction_message= NULL;
40
 
    }
 
30
    name= other.getName();
 
31
    resource_contexts= other.getResourceContexts();
 
32
    transaction_message= other.getTransactionMessage() ? new message::Transaction(*other.getTransactionMessage()) : NULL;
41
33
  }
42
34
 
43
35
  NamedSavepoint::~NamedSavepoint()