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

Function binlog_close_connection

phx_percona/percona/sql/binlog.cc:932–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932static int binlog_close_connection(handlerton *hton, THD *thd)
933{
934 DBUG_ENTER("binlog_close_connection");
935 binlog_cache_mngr *const cache_mngr= thd_get_cache_mngr(thd);
936 DBUG_ASSERT(cache_mngr->is_binlog_empty());
937 DBUG_ASSERT(cache_mngr->trx_cache.is_group_cache_empty() &&
938 cache_mngr->stmt_cache.is_group_cache_empty());
939 DBUG_PRINT("debug", ("Set ha_data slot %d to 0x%llx", binlog_hton->slot, (ulonglong) NULL));
940 thd_set_ha_data(thd, binlog_hton, NULL);
941 cache_mngr->~binlog_cache_mngr();
942 my_free(cache_mngr);
943 DBUG_RETURN(0);
944}
945
946static bool should_write_gtids(const THD *thd) {
947 /*

Callers

nothing calls this directly

Calls 3

thd_get_cache_mngrFunction · 0.85
is_group_cache_emptyMethod · 0.80
is_binlog_emptyMethod · 0.45

Tested by

no test coverage detected