MCPcopy Create free account
hub / github.com/MariaDB/server / binlog_post_commit

Function binlog_post_commit

sql/log.cc:2922–2939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2920
2921
2922void
2923binlog_post_commit(THD *thd, bool all)
2924{
2925 if (!opt_binlog_engine_hton)
2926 return;
2927
2928 binlog_cache_mngr *cache_mngr= thd->binlog_get_cache_mngr();
2929 if (likely(cache_mngr != nullptr) && unlikely(cache_mngr->need_engine_2pc))
2930 {
2931 DBUG_ASSERT(!cache_mngr->trx_cache.engine_binlog_info.internal_xa);
2932 DBUG_ASSERT(thd->lex->sql_command == SQLCOM_XA_COMMIT &&
2933 thd->lex->xa_opt != XA_ONE_PHASE);
2934 cache_mngr->need_engine_2pc= false;
2935 (*opt_binlog_engine_hton->binlog_unlog)
2936 (thd->transaction->xid_state.get_xid(),
2937 &cache_mngr->trx_cache.engine_binlog_info.engine_ptr);
2938 }
2939}
2940
2941
2942void

Callers 1

commit_one_phase_2Function · 0.85

Calls 2

binlog_get_cache_mngrMethod · 0.80
get_xidMethod · 0.45

Tested by

no test coverage detected