MySQL 9.1.0
Source Code Documentation
|
#include "sql/rpl_replica_commit_order_manager.h"
#include <array>
#include "debug_sync.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_sys.h"
#include "mysql/components/services/bits/psi_stage_bits.h"
#include "mysql/psi/mysql_cond.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysqld_error.h"
#include "sql/binlog.h"
#include "sql/handler.h"
#include "sql/mdl.h"
#include "sql/mysqld.h"
#include "sql/raii/sentry.h"
#include "sql/rpl_rli_pdb.h"
#include "sql/sql_class.h"
#include "sql/sql_error.h"
#include "sql/sql_lex.h"
#include "string_with_len.h"
Functions | |
bool | has_commit_order_manager (const THD *thd) |
Determines whether current thread shall run the procedure here to check whether it waits for its turn (and when its turn comes unregister from the commit order queue). More... | |
bool has_commit_order_manager | ( | const THD * | thd | ) |
Determines whether current thread shall run the procedure here to check whether it waits for its turn (and when its turn comes unregister from the commit order queue).
The sql commands ALTER TABLE, ANALYZE TABLE, DROP DB, DROP EVENT, DROP FUNCTION, DROP PROCEDURE, DROP TRIGGER, DROP TABLE, DROP VIEW, OPTIMIZE TABLE and REPAIR TABLE shall run this procedure here, as an exception, because these transactions have multiple intermediate commits. Therefore cannot predetermine when the last commit is done.
[in] | thd | The THD object of current thread. |
false | Commit_order_manager object is not initialized |
true | Commit_order_manager object is initialized |