MySQL 8.4.2
Source Code Documentation
|
DDL log record. More...
#include <log0ddl.h>
Public Member Functions | |
DDL_Record () | |
Constructor. More... | |
~DDL_Record () | |
Destructor. More... | |
ulint | get_id () const |
Get the id of the DDL log record. More... | |
void | set_id (ulint id) |
Set the id for the DDL log record. More... | |
Log_Type | get_type () const |
Get the type of operation to perform for the DDL log record. More... | |
void | set_type (Log_Type type) |
Set the type for the DDL log record. More... | |
ulint | get_thread_id () const |
Get the thread id for the DDL log record. More... | |
void | set_thread_id (ulint thread_id) |
Set the thread id for the DDL log record. More... | |
space_id_t | get_space_id () const |
Get the space_id present in the DDL log record. More... | |
void | set_space_id (space_id_t space) |
Set the space id for the DDL log record. More... | |
page_no_t | get_page_no () const |
Get the page no present in the DDL log record. More... | |
void | set_page_no (page_no_t page_no) |
Set the page number for the DDL log record. More... | |
ulint | get_index_id () const |
Get the index id present in the DDL log record. More... | |
void | set_index_id (ulint index_id) |
Set the index id for the DDL log record. More... | |
table_id_t | get_table_id () const |
Get the table id present in the DDL log record. More... | |
void | set_table_id (table_id_t table_id) |
Set the table if for the DDL log record. More... | |
void | set_deletable (bool deletable) |
Set deletability of this record. More... | |
bool | get_deletable () const |
If this record can be deleted. More... | |
Encryption::Progress | get_encryption_type () const |
Get encryption operation type. More... | |
const char * | get_old_file_path () const |
Get the old file path/name present in the DDL log record. More... | |
void | set_old_file_path (const char *name) |
Set the old file path from the name for the DDL log record. More... | |
void | set_old_file_path (const byte *data, ulint len) |
Copy the data and set it in old file path. More... | |
const char * | get_new_file_path () const |
Get the new file path/name present in the DDL log record. More... | |
void | set_new_file_path (const char *name) |
Set the new file path/name for the DDL log record. More... | |
void | set_new_file_path (const byte *data, ulint len) |
Copy the data and set it in new file path. More... | |
bool | validate () const |
std::ostream & | print (std::ostream &out) const |
Print the DDL record to specified output stream. More... | |
Private Attributes | |
ulint | m_id |
Log id. More... | |
Log_Type | m_type |
Log type. More... | |
ulint | m_thread_id |
Thread id. More... | |
space_id_t | m_space_id |
Tablespace id. More... | |
page_no_t | m_page_no |
Index root page. More... | |
ulint | m_index_id |
Index id. More... | |
table_id_t | m_table_id |
Table id. More... | |
char * | m_old_file_path |
Tablespace file path for DELETE, Old tablespace file path for RENAME. More... | |
char * | m_new_file_path |
New tablespace file name for RENAME. More... | |
mem_heap_t * | m_heap |
memory heap object used for storing file name. More... | |
bool | m_deletable |
If this record can be deleted. More... | |
DDL log record.
DDL_Record::DDL_Record | ( | ) |
Constructor.
DDL_Record::~DDL_Record | ( | ) |
Destructor.
|
inline |
If this record can be deleted.
|
inline |
Get encryption operation type.
|
inline |
Get the id of the DDL log record.
|
inline |
Get the index id present in the DDL log record.
|
inline |
Get the new file path/name present in the DDL log record.
|
inline |
Get the old file path/name present in the DDL log record.
|
inline |
Get the page no present in the DDL log record.
|
inline |
Get the space_id present in the DDL log record.
|
inline |
Get the table id present in the DDL log record.
|
inline |
Get the thread id for the DDL log record.
|
inline |
Get the type of operation to perform for the DDL log record.
std::ostream & DDL_Record::print | ( | std::ostream & | out | ) | const |
Print the DDL record to specified output stream.
[in,out] | out | output stream |
|
inline |
Set deletability of this record.
[in] | deletable | deletability. |
|
inline |
Set the id for the DDL log record.
[in] | id | id of the record. |
|
inline |
Set the index id for the DDL log record.
[in] | index_id | index id. |
Copy the data and set it in new file path.
[in] | data | data to be set |
[in] | len | length of the data. |
void DDL_Record::set_new_file_path | ( | const char * | name | ) |
Set the new file path/name for the DDL log record.
[in] | name | name to be set. |
Copy the data and set it in old file path.
[in] | data | data to be set |
[in] | len | length of the data. |
void DDL_Record::set_old_file_path | ( | const char * | name | ) |
Set the old file path from the name for the DDL log record.
[in] | name | old file name. |
|
inline |
Set the page number for the DDL log record.
[in] | page_no | page number. |
|
inline |
Set the space id for the DDL log record.
[in] | space | space id. |
|
inline |
Set the table if for the DDL log record.
[in] | table_id | table id. |
|
inline |
Set the thread id for the DDL log record.
[in] | thread_id | thread id. |
|
inline |
Set the type for the DDL log record.
[in] | type | set the record type. |
|
inline |
|
private |
If this record can be deleted.
|
private |
memory heap object used for storing file name.
|
private |
Log id.
|
private |
Index id.
|
private |
New tablespace file name for RENAME.
|
private |
Tablespace file path for DELETE, Old tablespace file path for RENAME.
|
private |
Index root page.
|
private |
Tablespace id.
|
private |
Table id.
|
private |
Thread id.
|
private |
Log type.