24#ifndef TRANSACTION_PREPARED_MESSAGE_INCLUDED
25#define TRANSACTION_PREPARED_MESSAGE_INCLUDED
117 const unsigned char *
end)
override;
This is the base GCS plugin message.
Definition: gcs_plugin_messages.h:64
Definition: transaction_prepared_message.h:36
Error_ptr m_error
Holds information about error that might occur during encoding/decoding.
Definition: transaction_prepared_message.h:124
void encode_payload(std::vector< unsigned char > *buffer) const override
Encodes the contents of this instance payload into the buffer.
Definition: transaction_prepared_message.cc:45
~Transaction_prepared_message() override
void decode_payload(const unsigned char *buffer, const unsigned char *end) override
Decodes the contents of the buffer and sets the payload field values according to the values decoded.
Definition: transaction_prepared_message.cc:76
const gr::Gtid_tsid & get_tsid()
TSID accessor.
Definition: transaction_prepared_message.cc:123
enum_payload_item_type
Definition: transaction_prepared_message.h:38
@ PIT_MAX
Definition: transaction_prepared_message.h:57
@ PIT_UNKNOWN
Definition: transaction_prepared_message.h:40
@ PIT_SENT_TIMESTAMP
Definition: transaction_prepared_message.h:50
@ PIT_TRANSACTION_PREPARED_TAG
Definition: transaction_prepared_message.h:54
@ PIT_TRANSACTION_PREPARED_GNO
Definition: transaction_prepared_message.h:43
@ PIT_TRANSACTION_PREPARED_SID
Definition: transaction_prepared_message.h:47
mysql::utils::Error_ptr Error_ptr
Definition: transaction_prepared_message.h:101
const Error_ptr & get_error() const
Gets information about decoding/encoding error.
Definition: transaction_prepared_message.cc:142
rpl_gno get_gno()
Definition: transaction_prepared_message.cc:125
rpl_gno m_gno
Definition: transaction_prepared_message.h:121
bool is_tsid_specified() const
returns information on whether TSID is specified for this trx
Definition: transaction_prepared_message.h:95
bool is_valid() const
Checks whether message encoding/decoding succeeded.
Definition: transaction_prepared_message.cc:134
gr::Gtid_tsid m_tsid
Definition: transaction_prepared_message.h:122
bool m_tsid_specified
Definition: transaction_prepared_message.h:120
static uint64_t get_sent_timestamp(const unsigned char *buffer, size_t length)
Return the time at which the message contained in the buffer was sent.
Definition: transaction_prepared_message.cc:127
Transaction_prepared_message(const gr::Gtid_tsid &tsid, bool is_tsid_specified, rpl_gno gno)
Message constructor.
Definition: transaction_prepared_message.cc:28
Represents Transaction Source Identifier which is composed of source UUID and transaction tag.
Definition: tsid.h:44
Some integer typedefs for easier portability.
Definition: buf0block_hint.cc:30
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
std::unique_ptr< mysql::utils::Error > Error_ptr
Definition: error.h:41
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
mysql::gtid::gno_t rpl_gno
GNO, the second (numeric) component of a GTID, is an alias of mysql::gtid::gno_t.
Definition: rpl_gtid.h:113