~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Lee Bieber
  • Date: 2011-02-11 02:00:55 UTC
  • mfrom: (2155.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211020055-xck466i0geihtgc8
Merge Stewart - moves mark_transaction_to_rollback to be a method in Session
Merge Vijay -  715789: test-drizzle, test-jp etc dont run check
Merge Stewart - 565053: Fork to background

Show diffs side-by-side

added added

removed removed

Lines of Context:
1614
1614
  @param  session   Thread handle
1615
1615
  @param  all   true <=> rollback main transaction.
1616
1616
*/
1617
 
void mark_transaction_to_rollback(Session *session, bool all)
 
1617
void Session::markTransactionForRollback(bool all)
1618
1618
{
1619
 
  if (session)
1620
 
  {
1621
 
    session->is_fatal_sub_stmt_error= true;
1622
 
    session->transaction_rollback_request= all;
1623
 
  }
 
1619
  is_fatal_sub_stmt_error= true;
 
1620
  transaction_rollback_request= all;
1624
1621
}
1625
1622
 
1626
1623
void Session::disconnect(enum error_t errcode)