MySQL 8.4.2
Source Code Documentation
|
DDL log. More...
#include <debug_sync.h>
#include "ha_prototypes.h"
#include <current_thd.h>
#include <sql_thd_internal_api.h>
#include <scope_guard.h>
#include "btr0sea.h"
#include "dict0dd.h"
#include "dict0mem.h"
#include "dict0stats.h"
#include "ha_innodb.h"
#include "log0chkp.h"
#include "log0ddl.h"
#include "mysql/plugin.h"
#include "pars0pars.h"
#include "que0que.h"
#include "row0ins.h"
#include "row0row.h"
#include "row0sel.h"
#include "trx0trx.h"
Functions | |
void | ddl_log_crash_reset (THD *, SYS_VAR *, void *, const void *save) |
Reset all crash injection counters. More... | |
std::ostream & | operator<< (std::ostream &o, const DDL_Record &record) |
Display a DDL record. More... | |
static dberr_t | replace_and_insert (DDL_Record *record) |
Variables | |
Log_DDL * | log_ddl = nullptr |
Object to handle Log_DDL. More... | |
thread_local bool | thread_local_ddl_log_replay = false |
Whether replaying DDL log Note: we should not write DDL log when replaying DDL log. More... | |
bool | innodb_ddl_log_crash_reset_debug |
Used by SET GLOBAL innodb_ddl_log_crash_counter_reset_debug = 1;. More... | |
static uint32_t | crash_before_free_tree_log_counter = 1 |
Below counters are only used for four types of DDL log: More... | |
static uint32_t | crash_after_free_tree_log_counter = 1 |
Crash injection counter used after writing FREE TREE log. More... | |
static uint32_t | crash_after_free_tree_delete_counter = 1 |
Crash injection counter used after deleting FREE TREE log. More... | |
static uint32_t | crash_before_delete_space_log_counter = 1 |
Crash injection counter used before writing DELETE SPACE log. More... | |
static uint32_t | crash_after_delete_space_log_counter = 1 |
Crash injection counter used after writing DELETE SPACE log. More... | |
static uint32_t | crash_after_delete_space_delete_counter = 1 |
Crash injection counter used after deleting DELETE SPACE log. More... | |
static uint32_t | crash_before_rename_space_log_counter = 1 |
Crash injection counter used before writing RENAME SPACE log. More... | |
static uint32_t | crash_after_rename_space_log_counter = 1 |
Crash injection counter used after writing RENAME SPACE log. More... | |
static uint32_t | crash_after_rename_space_delete_counter = 1 |
Crash injection counter used after deleting RENAME SPACE log. More... | |
static uint32_t | crash_before_drop_log_counter = 1 |
Crash injection counter used before writing DROP log. More... | |
static uint32_t | crash_after_drop_log_counter = 1 |
Crash injection counter used after writing DROP log. More... | |
static uint32_t | crash_after_replay_counter = 1 |
Crash injection counter used after any replay. More... | |
static uint32_t | crash_before_alter_encrypt_space_log_counter = 1 |
Crash injection counter used before writing ALTER ENCRYPT TABLESPACE log. More... | |
static uint32_t | crash_after_alter_encrypt_space_log_counter = 1 |
Crash injection counter used after writing ALTER ENCRYPT TABLESPACE log. More... | |
static uint32_t | crash_post_ddl_apply_step_counter = 1 |
Crash injection counter used during post ddl in each step. More... | |
constexpr uint32_t | DELETE_IDS_RETRIES_MAX = 10 |
DDL log.
Created 12/1/2016 Shaohua Wang
Reset all crash injection counters.
It's used by: SET GLOBAL innodb_ddl_log_crash_reset_debug = 1 (0).
[in] | thd | thread handle |
[in] | var | pointer to system variable |
[in] | var_ptr | where the formal string goes |
[in] | save | immediate result from check function |
std::ostream & operator<< | ( | std::ostream & | o, |
const DDL_Record & | record | ||
) |
Display a DDL record.
[in,out] | o | output stream |
[in] | record | DDL record to display |
|
static |
|
static |
Crash injection counter used after writing ALTER ENCRYPT TABLESPACE log.
|
static |
Crash injection counter used after deleting DELETE SPACE log.
|
static |
Crash injection counter used after writing DELETE SPACE log.
|
static |
Crash injection counter used after writing DROP log.
|
static |
Crash injection counter used after deleting FREE TREE log.
|
static |
Crash injection counter used after writing FREE TREE log.
|
static |
Crash injection counter used after deleting RENAME SPACE log.
|
static |
Crash injection counter used after writing RENAME SPACE log.
|
static |
Crash injection counter used after any replay.
|
static |
Crash injection counter used before writing ALTER ENCRYPT TABLESPACE log.
|
static |
Crash injection counter used before writing DELETE SPACE log.
|
static |
Crash injection counter used before writing DROP log.
|
static |
Below counters are only used for four types of DDL log:
|
static |
Crash injection counter used before writing RENAME SPACE log.
|
static |
Crash injection counter used during post ddl in each step.
|
constexpr |
bool innodb_ddl_log_crash_reset_debug |
Used by SET GLOBAL innodb_ddl_log_crash_counter_reset_debug = 1;.
thread_local bool thread_local_ddl_log_replay = false |
Whether replaying DDL log Note: we should not write DDL log when replaying DDL log.