229 record_type after,
const unsigned char *extra_row_info);
347 static char const *state_name[] = {
"START_STATE",
"TABLE_STATE",
348 "ROW_STATE",
"STATE_COUNT"};
350 assert(0 <= target_state && target_state <=
STATE_COUNT);
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
Definition: rpl_injector.h:163
char const * m_file_name
Definition: rpl_injector.h:171
char const * file_name() const
Definition: rpl_injector.h:167
my_off_t file_pos() const
Definition: rpl_injector.h:168
my_off_t m_file_pos
Definition: rpl_injector.h:172
Definition: rpl_injector.h:124
MY_BITMAP * save_write_set
Definition: rpl_injector.h:142
TABLE *const m_table
Definition: rpl_injector.h:140
~save_sets()
Definition: rpl_injector.h:135
MY_BITMAP * save_read_set
Definition: rpl_injector.h:141
save_sets(table const &tbl, MY_BITMAP const *new_rs, MY_BITMAP const *new_ws)
Definition: rpl_injector.h:126
Definition: rpl_injector.h:122
const bool m_is_transactional
Definition: rpl_injector.h:156
const bool m_skip_hash
Definition: rpl_injector.h:157
TABLE * get_table() const
Definition: rpl_injector.h:150
TABLE *const m_table
Definition: rpl_injector.h:155
table(TABLE *table, bool is_transactional, bool skip_hash=false)
Definition: rpl_injector.h:145
bool skip_hash() const
Definition: rpl_injector.h:152
bool is_transactional() const
Definition: rpl_injector.h:151
Definition: rpl_injector.h:77
uchar * record_type
Definition: rpl_injector.h:82
bool good() const
Definition: rpl_injector.h:183
int write_row(server_id_type sid, table tbl, MY_BITMAP const *cols, record_type record, const unsigned char *extra_row_info)
Definition: rpl_injector.cc:177
void clear()
Definition: rpl_injector.h:180
enum_state
Definition: rpl_injector.h:308
@ ROW_STATE
Definition: rpl_injector.h:311
@ START_STATE
Definition: rpl_injector.h:309
@ STATE_COUNT
Definition: rpl_injector.h:312
@ TABLE_STATE
Definition: rpl_injector.h:310
binlog_pos m_start_pos
Definition: rpl_injector.h:362
binlog_pos next_pos() const
Definition: rpl_injector.cc:282
~transaction()
Definition: rpl_injector.cc:78
binlog_pos m_next_pos
Definition: rpl_injector.h:363
THD * m_thd
Definition: rpl_injector.h:364
int delete_row(server_id_type sid, table tbl, MY_BITMAP const *cols, record_type record, const unsigned char *extra_row_info)
Definition: rpl_injector.cc:209
int commit()
Definition: rpl_injector.cc:98
int use_table(server_id_type sid, table tbl)
Definition: rpl_injector.cc:165
uint32 server_id_type
Definition: rpl_injector.h:83
int check_state(enum_state const target_state)
Definition: rpl_injector.h:345
transaction(transaction const &)
binlog_pos start_pos() const
Definition: rpl_injector.cc:278
void swap(transaction &o)
Definition: rpl_injector.h:280
int update_row(server_id_type sid, table tbl, MY_BITMAP const *before_cols, MY_BITMAP const *after_cols, record_type before, record_type after, const unsigned char *extra_row_info)
Definition: rpl_injector.cc:241
enum injector::transaction::enum_state m_state
transaction()
Definition: rpl_injector.h:175
int rollback()
Definition: rpl_injector.cc:141
transaction & operator=(transaction t)
Definition: rpl_injector.h:186
Definition: rpl_injector.h:50
static injector * instance()
Definition: rpl_injector.cc:294
int record_incident(THD *, std::string_view message)
Definition: rpl_injector.cc:319
static void free_instance()
Definition: rpl_injector.cc:300
injector(injector const &)
void new_trans(THD *, transaction *)
Definition: rpl_injector.cc:309
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:222
#define DBUG_PRINT(keyword, arglist)
Definition: my_dbug.h:181
Some integer typedefs for easier portability.
ulonglong my_off_t
Definition: my_inttypes.h:72
unsigned char uchar
Definition: my_inttypes.h:52
uint32_t uint32
Definition: my_inttypes.h:67
static int record
Definition: mysqltest.cc:188
Definition: my_bitmap.h:43
void column_bitmaps_set_no_signal(MY_BITMAP *read_set_arg, MY_BITMAP *write_set_arg)
Definition: table.h:1907