MySQL 8.4.2
Source Code Documentation
|
This service provides a function for plugins to get the write set of a given transaction. More...
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | Transaction_write_set |
This structure is used to keep the list of the hash values of the records changed in the transaction. More... | |
struct | transaction_write_set_service_st |
Macros | |
#define | MYSQL_SERVICE_TRANSACTION_WRITE_SET_INCLUDED |
Functions | |
Transaction_write_set * | get_transaction_write_set (unsigned long m_thread_id) |
void | require_full_write_set (bool requires_ws) |
void | set_write_set_memory_size_limit (uint64 size_limit) |
void | update_write_set_memory_size_limit (uint64 size_limit) |
Variables | |
struct transaction_write_set_service_st * | transaction_write_set_service |
This service provides a function for plugins to get the write set of a given transaction.
Implementation of service_rpl_transaction_write_set, see.
SYNOPSIS get_transaction_write_set() This service is used to fetch the write_set extracted for the currently executing transaction by passing the thread_id as an input parameter for the method.
[in] | - | thread_id - It is the thread identifier of the currently executing thread. |
In the current implementation it is being called during RUN_HOOK macro, on which we know that thread is on plugin context.
Cleanup : The service caller must take of the memory allocated during the service call to prevent memory leaks.
#define MYSQL_SERVICE_TRANSACTION_WRITE_SET_INCLUDED |
Transaction_write_set * get_transaction_write_set | ( | unsigned long | m_thread_id | ) |
void require_full_write_set | ( | bool | requires_ws | ) |
void set_write_set_memory_size_limit | ( | uint64 | size_limit | ) |
void update_write_set_memory_size_limit | ( | uint64 | size_limit | ) |
struct transaction_write_set_service_st * transaction_write_set_service |