63
71
static TransactionServices transaction_services;
64
72
return transaction_services;
76
* Returns true if the transaction manager should construct
77
* Transaction and Statement messages, false otherwise.
79
bool shouldConstructMessages();
67
81
* Method which returns the active Transaction message
68
82
* for the supplied Session. If one is not found, a new Transaction
190
204
* @param Pointer to the Session committing the transaction
192
void commitTransactionMessage(Session *in_session);
206
int commitTransactionMessage(Session *in_session);
194
208
* Marks the current active transaction message as being rolled back and
195
209
* pushes the transaction message out to replicators.
294
308
void rawStatement(Session *in_session, const std::string &query);
295
309
/* transactions: interface to plugin::StorageEngine functions */
296
int ha_commit_one_phase(Session *session, bool all);
297
int ha_rollback_trans(Session *session, bool all);
310
int commitPhaseOne(Session *session, bool all);
311
int rollbackTransaction(Session *session, bool all);
299
313
/* transactions: these functions never call plugin::StorageEngine functions directly */
300
int ha_commit_trans(Session *session, bool all);
301
int ha_autocommit_or_rollback(Session *session, int error);
314
int commitTransaction(Session *session, bool all);
315
int autocommitOrRollback(Session *session, int error);
304
int ha_rollback_to_savepoint(Session *session, NamedSavepoint &sv);
305
int ha_savepoint(Session *session, NamedSavepoint &sv);
306
int ha_release_savepoint(Session *session, NamedSavepoint &sv);
307
bool mysql_xa_recover(Session *session);
318
int rollbackToSavepoint(Session *session, NamedSavepoint &sv);
319
int setSavepoint(Session *session, NamedSavepoint &sv);
320
int releaseSavepoint(Session *session, NamedSavepoint &sv);
310
323
* Marks a storage engine as participating in a statement
383
396
plugin::MonitoredInTransaction *monitored,
384
397
plugin::TransactionalStorageEngine *engine,
385
398
plugin::XaResourceManager *resource_manager);
399
TransactionId getNextTransactionId()
401
return current_transaction_id.increment();
403
TransactionId getCurrentTransactionId()
405
return current_transaction_id;
408
* DEBUG ONLY. See plugin::TransactionLog::truncate()
410
void resetTransactionId()
412
current_transaction_id= 0;
415
atomic<TransactionId> current_transaction_id;
388
418
} /* namespace drizzled */