~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rollback_to_savepoint.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 10:47:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623104703-hw93svu0vfgcqt9p
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
   * all savepoints "above" the one we find.
66
66
   */
67
67
  deque<NamedSavepoint> &savepoints= transaction().savepoints;
68
 
  TransactionServices &transaction_services= TransactionServices::singleton();
69
68
 
70
69
  /* Short-circuit for no savepoints */
71
70
  if (savepoints.empty())
88
87
                     first_savepoint_name.size()) == 0)
89
88
    {
90
89
      /* Found the named savepoint we want to rollback to */
91
 
      (void) transaction_services.rollbackToSavepoint(session(), first_savepoint);
 
90
      (void) TransactionServices::rollbackToSavepoint(session(), first_savepoint);
92
91
 
93
92
      if (transaction().all.hasModifiedNonTransData())
94
93
      {
126
125
      /* Found the named savepoint we want to rollback to */
127
126
      found= true;
128
127
 
129
 
      (void) transaction_services.rollbackToSavepoint(session(), sv);
 
128
      (void) TransactionServices::rollbackToSavepoint(session(), sv);
130
129
    }
131
130
    if (found)
132
131
    {