~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/release_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:
39
39
   * find one with the same name, we release it and
40
40
   * unbind it from our deque.
41
41
   */
42
 
  TransactionServices &transaction_services= TransactionServices::singleton();
43
42
  deque<NamedSavepoint> &savepoints= transaction().savepoints;
44
43
  deque<NamedSavepoint>::iterator iter;
45
44
 
46
 
  for (iter= savepoints.begin();
47
 
       iter != savepoints.end();
48
 
       ++iter)
 
45
  for (iter= savepoints.begin(); iter != savepoints.end(); ++iter)
49
46
  {
50
47
    NamedSavepoint &sv= *iter;
51
48
    const string &sv_name= sv.getName();
59
56
  if (iter != savepoints.end())
60
57
  {
61
58
    NamedSavepoint &sv= *iter;
62
 
    (void) transaction_services.releaseSavepoint(session(), sv);
 
59
    (void) TransactionServices::releaseSavepoint(session(), sv);
63
60
    savepoints.erase(iter);
64
61
    session().my_ok();
65
62
  }