MySQL  8.0.27
Source Code Documentation
Replication_transaction_boundary_parser Class Reference

This is the class for verifying transaction boundaries in a replication event stream. More...

#include <rpl_trx_boundary_parser.h>

Inheritance diagram for Replication_transaction_boundary_parser:
Transaction_boundary_parser

Public Member Functions

 Replication_transaction_boundary_parser (Transaction_boundary_parser::enum_trx_boundary_parser_context context)
 The constructor. More...
 
void log_server_warning (int error, const char *message) override
 Log warnings into the error log. More...
 
- Public Member Functions inherited from Transaction_boundary_parser
 Transaction_boundary_parser (enum_trx_boundary_parser_context context)
 Constructor. More...
 
virtual ~Transaction_boundary_parser ()
 Destructor. More...
 
void reset ()
 Reset the transaction boundary parser state. More...
 
bool is_inside_transaction ()
 State if the transaction boundary parser is inside a transaction. More...
 
bool is_not_inside_transaction ()
 State if the transaction boundary parser is not inside a transaction. More...
 
bool is_error ()
 State if the transaction boundary parser was fed with a sequence of events that the parser wasn't able to parse correctly. More...
 
bool feed_event (binary_log::Log_event_basic_info log_event_info, bool throw_warnings)
 Feed the transaction boundary parser with a Log_event of any type in object type. More...
 
bool check_row_logging_constraints (binary_log::Log_event_basic_info event_info)
 Evaluate given the current info about boundary type, event type and parser state if the given event violates any restriction associated to row based only modes. More...
 
void rollback ()
 Rolls back to the last parser state. More...
 

Additional Inherited Members

- Public Types inherited from Transaction_boundary_parser
enum  enum_trx_boundary_parser_context { TRX_BOUNDARY_PARSER_RECEIVER , TRX_BOUNDARY_PARSER_APPLIER }
 The context where the parser is used. More...
 
enum  enum_event_parser_error {
  ER_TRX_BOUND_UNSUPPORTED_UNIGNORABLE_EVENT_IN_STREAM , ER_TRX_BOUND_GTID_LOG_EVENT_IN_STREAM , ER_TRX_BOUND_UNEXPECTED_BEGIN_IN_STREAM , ER_TRX_BOUND_UNEXPECTED_COMMIT_ROLLBACK_OR_XID_LOG_EVENT_IN_STREAM ,
  ER_TRX_BOUND_UNEXPECTED_XA_ROLLBACK_IN_STREAM
}
 Internal error indentifiers for parser issues. More...
 

Detailed Description

This is the class for verifying transaction boundaries in a replication event stream.

Constructor & Destructor Documentation

◆ Replication_transaction_boundary_parser()

Replication_transaction_boundary_parser::Replication_transaction_boundary_parser ( Transaction_boundary_parser::enum_trx_boundary_parser_context  context)
inline

The constructor.

Parameters
contextIf this parser is used on a receiver or applier context

Member Function Documentation

◆ log_server_warning()

void Replication_transaction_boundary_parser::log_server_warning ( int  error,
const char *  message 
)
overridevirtual

Log warnings into the error log.

Parameters
errorthe error number
messagethe error message

Reimplemented from Transaction_boundary_parser.


The documentation for this class was generated from the following files: