MySQL 9.0.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::binlog::event::resource::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 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 |
using Transaction_compression_ctx::Memory_resource_t = mysql::binlog::event::resource::Memory_resource |
|
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 |