MySQL 9.1.0
Source Code Documentation
|
Persister used for autoinc counters. More...
#include <dict0mem.h>
Public Member Functions | |
ulint | write (const PersistentTableMetadata &metadata, byte *buffer, ulint size) const override |
Write the autoinc counter 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 autoinc counter 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... | |
Persister used for autoinc counters.
|
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.
|
inlineoverridevirtual |
Pre-calculate the size of metadata to be written.
[in] | metadata | metadata to be written |
Implements Persister.
|
overridevirtual |
Read the autoinc counter from buffer, and store them to metadata object.
Read the autoinc counter from buffer, and store them to a 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 autoinc counter of a table, we can pre-calculate the size by calling get_write_size()
[in] | metadata | persistent metadata |
[out] | buffer | write buffer |
[in] | size | size of write buffer, should be at least get_write_size() |
Implements Persister.