24#ifndef TRANSACTION_PREPARED_MESSAGE_INCLUDED
25#define TRANSACTION_PREPARED_MESSAGE_INCLUDED
107 const unsigned char *
end)
override;
This is the base GCS plugin message.
Definition: gcs_plugin_messages.h:65
Definition: transaction_prepared_message.h:36
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:141
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
rpl_gno get_gno()
Definition: transaction_prepared_message.cc:143
rpl_gno m_gno
Definition: transaction_prepared_message.h:111
bool is_tsid_specified() const
returns information on whether TSID is specified for this trx
Definition: transaction_prepared_message.h:95
gr::Gtid_tsid m_tsid
Definition: transaction_prepared_message.h:112
bool m_tsid_specified
Definition: transaction_prepared_message.h:110
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:145
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
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:114