24#ifndef MYSQL_CSA_RELAY_LOG_CACHED_EVENT_PAYLOAD_H
25#define MYSQL_CSA_RELAY_LOG_CACHED_EVENT_PAYLOAD_H
42 std::shared_ptr<Log_event> fde);
47 std::shared_ptr<Log_event>
decode()
override;
Definition: binlog_reader.h:82
Implementation of the IReader_event which keeps event raw payload until decoded.
Definition: cached_event_payload.h:36
void reset(const Format_description_log_event *) override
Resets event state.
Definition: cached_event_payload.cpp:41
Format_description_log_event * m_fde_ptr
Non-owning pointer to FDE.
Definition: cached_event_payload.h:62
std::size_t m_length
Event length.
Definition: cached_event_payload.h:56
Cached_event_payload(const Event_payload &payload, std::shared_ptr< Log_event > fde)
Is constructed using payload data/metadata and associated fde.
Definition: cached_event_payload.cpp:30
bool m_verify_checksum
Information on whether to verify checksum after decoding.
Definition: cached_event_payload.h:58
uint8_t * m_data
Event data, owning pointer returned by the reader (legacy design)
Definition: cached_event_payload.h:54
Default_binlog_event_allocator m_allocator
Allocator used to allocate event data in the reader, we use a separate object, since 'Default_binlog_...
Definition: cached_event_payload.h:66
std::shared_ptr< Log_event > decode() override
Decode function, which decodes payload and returns Log event smart pointer.
Definition: cached_event_payload.cpp:43
std::shared_ptr< Log_event > m_current_fde
Owning pointer of the FDE base.
Definition: cached_event_payload.h:60
Interface for abstract event data returned by the reader, which can be decoded into a log event using...
Definition: ireader_event.h:38
Binary log event definitions.
Definition: channel.cpp:28
Helper structure used by the reader to aggregate payload and information needed to decode an event.
Definition: binlog_reader.h:91