For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
static int flags[50]
Definition: hp_test1.cc:40
Some integer typedefs for easier portability.
case opt name
Definition: sslopt-case.h:29
Definition: mysql_lex_string.h:35
bool trans_rollback(THD *thd)
Rollback the current transaction, canceling its changes.
Definition: transaction.cc:395
void trans_track_end_trx(THD *thd)
Helper: Tell tracker (if any) that transaction ended.
Definition: transaction.cc:63
void trans_reset_one_shot_chistics(THD *thd)
Helper: transaction ended, SET TRANSACTION one-shot variables revert to session values.
Definition: transaction.cc:72
bool trans_check_state(THD *thd)
Check if we have a condition where the transaction state must not be changed (committed or rolled bac...
Definition: transaction.cc:93
bool trans_rollback_stmt(THD *thd)
Rollback the single statement transaction.
Definition: transaction.cc:559
bool trans_commit_attachable(THD *thd)
Commit the attachable transaction.
Definition: transaction.cc:638
bool trans_commit_stmt(THD *thd, bool ignore_global_read_lock=false)
Commit the single statement transaction.
Definition: transaction.cc:513
bool trans_rollback_implicit(THD *thd)
Implicitly rollback the current transaction, typically after deadlock was discovered.
Definition: transaction.cc:450
bool trans_commit_implicit(THD *thd, bool ignore_global_read_lock=false)
Implicitly commit the current transaction.
Definition: transaction.cc:319
bool trans_release_savepoint(THD *thd, LEX_STRING name)
Remove the named savepoint from the set of savepoints of the current transaction.
Definition: transaction.cc:834
bool trans_commit(THD *thd, bool ignore_global_read_lock=false)
Commit the current transaction, making its changes permanent.
Definition: transaction.cc:233
bool trans_savepoint(THD *thd, LEX_STRING name)
Set a named transaction savepoint.
Definition: transaction.cc:690
bool trans_rollback_to_savepoint(THD *thd, LEX_STRING name)
Rollback a transaction to the named savepoint.
Definition: transaction.cc:766
bool trans_begin(THD *thd, uint flags=0)
Begin a new transaction.
Definition: transaction.cc:125