MySQL 9.1.0
Source Code Documentation
|
Persister used for corrupted indexes. More...
#include <dict0mem.h>
Public Member Functions | |
ulint | write (const PersistentTableMetadata &metadata, byte *buffer, ulint size) const override |
Write the corrupted indexes of a table, we can pre-calculate the size by calling get_write_size() More... | |
ulint | get_write_size (const PersistentTableMetadata &metadata) const override |
Pre-calculate the size of metadata to be written. More... | |
ulint | read (PersistentTableMetadata &metadata, const byte *buffer, ulint size, bool *corrupt) const override |
Read the corrupted indexes from buffer, and store them to metadata object. More... | |
void | aggregate (PersistentTableMetadata &metadata, const PersistentTableMetadata &new_entry) const override |
Aggregate metadata entries into a single metadata instance, considering version numbers. More... | |
Public Member Functions inherited from Persister | |
virtual | ~Persister ()=default |
Virtual destructor. More... | |
void | write_log (table_id_t id, const PersistentTableMetadata &metadata, mtr_t *mtr) const |
Write MLOG_TABLE_DYNAMIC_META for persistent dynamic metadata of table. More... | |
Static Private Attributes | |
static const size_t | INDEX_ID_LENGTH = 12 |
The length of index_id_t we will write. More... | |
Persister used for corrupted indexes.
|
overridevirtual |
Aggregate metadata entries into a single metadata instance, considering version numbers.
[in,out] | metadata | metadata object to be modified |
[in] | new_entry | metadata entry from logs |
Implements Persister.
|
overridevirtual |
Pre-calculate the size of metadata to be written.
[in] | metadata | metadata to be written |
Implements Persister.
|
overridevirtual |
Read the corrupted indexes from buffer, and store them to metadata object.
[out] | metadata | metadata where we store the read data |
[in] | buffer | buffer to read |
[in] | size | size of buffer |
[out] | corrupt | true if we found something wrong in the buffer except incomplete buffer, otherwise false |
Implements Persister.
|
overridevirtual |
Write the corrupted indexes of a table, we can pre-calculate the size by calling get_write_size()
[in] | metadata | persistent data |
[out] | buffer | write buffer |
[in] | size | size of write buffer, should be at least get_write_size() |
Implements Persister.
|
staticprivate |
The length of index_id_t we will write.