~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

This patch does not change any algorithms or code paths, 
it just moves the transaction-related methods in the
drizzled/ha_commands.cc file into a file named
drizzled/transaction_services.cc and creates a singleton
Service class called TransactionServices containing all
the previous ha_xxx methods related specifically to the
XA distributed transaction processing model.

This is a quick stopgap patch in the move towards separating
out the XA Resource Manager API from the Storage Engine API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include "drizzled/probes.h"
40
40
#include "drizzled/session_list.h"
41
41
#include "drizzled/global_charset_info.h"
42
 
 
 
42
#include "drizzled/transaction_services.h"
43
43
 
44
44
#include "drizzled/plugin/logging.h"
45
45
#include "drizzled/plugin/info_schema_table.h"
253
253
 
254
254
  /* If commit fails, we should be able to reset the OK status. */
255
255
  session->main_da.can_overwrite_status= true;
256
 
  ha_autocommit_or_rollback(session, session->is_error());
 
256
  TransactionServices &transaction_services= TransactionServices::singleton();
 
257
  transaction_services.ha_autocommit_or_rollback(session, session->is_error());
257
258
  session->main_da.can_overwrite_status= false;
258
259
 
259
260
  session->transaction.stmt.reset();