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

Function binlog_init

phx_percona/percona/sql/binlog.cc:912–930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910*/
911
912static int binlog_init(void *p)
913{
914 binlog_hton= (handlerton *)p;
915 binlog_hton->state=opt_bin_log ? SHOW_OPTION_YES : SHOW_OPTION_NO;
916 binlog_hton->db_type=DB_TYPE_BINLOG;
917 binlog_hton->savepoint_offset= sizeof(my_off_t);
918 binlog_hton->close_connection= binlog_close_connection;
919 binlog_hton->savepoint_set= binlog_savepoint_set;
920 binlog_hton->savepoint_rollback= binlog_savepoint_rollback;
921 binlog_hton->savepoint_rollback_can_release_mdl=
922 binlog_savepoint_rollback_can_release_mdl;
923 binlog_hton->commit= binlog_commit;
924 binlog_hton->rollback= binlog_rollback;
925 binlog_hton->prepare= binlog_prepare;
926 binlog_hton->start_consistent_snapshot= binlog_start_consistent_snapshot;
927 binlog_hton->clone_consistent_snapshot= binlog_clone_consistent_snapshot;
928 binlog_hton->flags= HTON_NOT_USER_SELECTABLE | HTON_HIDDEN;
929 return 0;
930}
931
932static int binlog_close_connection(handlerton *hton, THD *thd)
933{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected