MySQL 9.1.0
Source Code Documentation
|
#include <rpl_context.h>
Public Types | |
using | Compressor_ptr_t = std::shared_ptr< Compressor_t > |
using | Managed_buffer_sequence_t = Compressor_t::Managed_buffer_sequence_t |
using | Memory_resource_t = mysql::allocators::Memory_resource |
Public Member Functions | |
Transaction_compression_ctx (PSI_memory_key key) | |
Compressor_ptr_t | get_compressor (THD *session) |
Return the compressor. More... | |
Managed_buffer_sequence_t & | managed_buffer_sequence () |
Return reference to the buffer sequence holding compressed bytes. More... | |
Private Types | |
using | Compressor_t = mysql::binlog::event::compression::Compressor |
using | Grow_calculator_t = mysql::containers::buffers::Grow_calculator |
using | Factory_t = mysql::binlog::event::compression::Factory |
Private Attributes | |
Memory_resource_t | m_managed_buffer_memory_resource |
Managed_buffer_sequence_t | m_managed_buffer_sequence |
Compressor_ptr_t | m_compressor |
using Transaction_compression_ctx::Compressor_ptr_t = std::shared_ptr<Compressor_t> |
|
private |
|
private |
using Transaction_compression_ctx::Managed_buffer_sequence_t = Compressor_t::Managed_buffer_sequence_t |
|
explicit |
Transaction_compression_ctx::Compressor_ptr_t Transaction_compression_ctx::get_compressor | ( | THD * | session | ) |
Return the compressor.
This constructs the compressor on the first invocation and returns the same compressor on subsequent invocations.
Transaction_compression_ctx::Managed_buffer_sequence_t & Transaction_compression_ctx::managed_buffer_sequence | ( | ) |
Return reference to the buffer sequence holding compressed bytes.
|
private |
|
private |
|
private |