MCPcopy Create free account
hub / github.com/Tencent/phxsql / before_send_event

Method before_send_event

phx_percona/percona/sql/rpl_handler.cc:362–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362int Binlog_transmit_delegate::before_send_event(THD *thd, ushort flags,
363 String *packet,
364 const char *log_file,
365 my_off_t log_pos)
366{
367 Binlog_transmit_param param;
368 param.flags= flags;
369
370 DBUG_EXECUTE_IF("crash_binlog_transmit_hook", DBUG_SUICIDE(););
371
372 int ret= 0;
373 FOREACH_OBSERVER(ret, before_send_event, thd,
374 (&param, (uchar *)packet->c_ptr(),
375 packet->length(),
376 log_file+dirname_length(log_file), log_pos));
377 return ret;
378}
379
380int Binlog_transmit_delegate::after_send_event(THD *thd, ushort flags,
381 String *packet,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected