MySQL 9.1.0
Source Code Documentation
|
This is a passthrough allocator. More...
Public Types | |
enum | { DELEGATE_MEMORY_TO_EVENT_OBJECT = false } |
Do not delegate the memory to the event as that may have the event deallocate it at the destructor. More... | |
Public Member Functions | |
unsigned char * | allocate (size_t size) |
void | deallocate (unsigned char *ptr) |
void | set_context (Binlog_iterator_ctx *ctx) |
Private Attributes | |
Binlog_iterator_ctx * | m_ctx {nullptr} |
This is a passthrough allocator.
This allocator returns the buffer referenced in the context always. If the reader requests more memory to be allocated and the memory requested exceeds the capacity of the buffer in use, the allocator will return nullptr, meaning that the buffer is insufficient to store the next event. This causes the reader to fail with MEM_ALLOCATE error.
anonymous enum |
|
inline |
|
inline |
|
inline |
|
private |