MySQL 8.0.40
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
log0ddl.h File Reference

DDL log. More...

Go to the source code of this file.

Classes

class  DDL_Record
 DDL log record. More...
 
class  DDL_Log_Table
 Wrapper of mysql.innodb_ddl_log table. More...
 
class  Log_DDL
 Class to write and replay ddl logs. More...
 

Typedefs

using DDL_Records = std::vector< DDL_Record * >
 Array of DDL records. More...
 

Enumerations

enum class  Log_Type : uint32_t {
  SMALLEST_LOG = 1 , FREE_TREE_LOG = 1 , DELETE_SPACE_LOG , RENAME_SPACE_LOG ,
  DROP_LOG , RENAME_TABLE_LOG , REMOVE_CACHE_LOG , ALTER_ENCRYPT_TABLESPACE_LOG ,
  ALTER_UNENCRYPT_TABLESPACE_LOG , BIGGEST_LOG = ALTER_UNENCRYPT_TABLESPACE_LOG
}
 DDL log types defined as uint32_t because it costs 4 bytes in mysql.innodb_ddl_log. More...
 

Functions

void ddl_log_close ()
 Close the DDL log system. More...
 
void ddl_log_crash_reset (THD *thd, SYS_VAR *var, void *var_ptr, const void *save)
 Reset all crash injection counters. More...
 

Variables

Log_DDLlog_ddl
 Object to handle Log_DDL. More...
 
bool innodb_ddl_log_crash_reset_debug
 Used by SET GLOBAL innodb_ddl_log_crash_counter_reset_debug = 1;. More...
 

Detailed Description

DDL log.

Created 12/1/2016 Shaohua Wang

Typedef Documentation

◆ DDL_Records

using DDL_Records = std::vector<DDL_Record *>

Array of DDL records.

Enumeration Type Documentation

◆ Log_Type

enum class Log_Type : uint32_t
strong

DDL log types defined as uint32_t because it costs 4 bytes in mysql.innodb_ddl_log.

Enumerator
SMALLEST_LOG 

Smallest log type.

FREE_TREE_LOG 

Drop an index tree.

DELETE_SPACE_LOG 

Delete a file.

RENAME_SPACE_LOG 

Rename a file.

DROP_LOG 

Drop the entry in innodb_table_metadata.

RENAME_TABLE_LOG 

Rename table in dict cache.

REMOVE_CACHE_LOG 

Remove a table from dict cache.

ALTER_ENCRYPT_TABLESPACE_LOG 

Alter Encrypt a tablespace.

ALTER_UNENCRYPT_TABLESPACE_LOG 

Alter Unencrypt a tablespace.

BIGGEST_LOG 

Biggest log type.

Function Documentation

◆ ddl_log_close()

void ddl_log_close ( )
inline

Close the DDL log system.

◆ ddl_log_crash_reset()

void ddl_log_crash_reset ( THD thd,
SYS_VAR var,
void *  var_ptr,
const void *  save 
)

Reset all crash injection counters.

It's used by: SET GLOBAL innodb_ddl_log_crash_reset_debug = 1 (0).

Parameters
[in]thdthread handle
[in]varpointer to system variable
[in]var_ptrwhere the formal string goes
[in]saveimmediate result from check function

Variable Documentation

◆ innodb_ddl_log_crash_reset_debug

bool innodb_ddl_log_crash_reset_debug
extern

Used by SET GLOBAL innodb_ddl_log_crash_counter_reset_debug = 1;.

◆ log_ddl

Log_DDL* log_ddl
extern

Object to handle Log_DDL.