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

Method get_group_cache

phx_percona/percona/sql/binlog.cc:7790–7808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7788
7789
7790Group_cache *THD::get_group_cache(bool is_transactional)
7791{
7792 DBUG_ENTER("THD::get_group_cache(bool)");
7793
7794 // If opt_bin_log==0, it is not safe to call thd_get_cache_mngr
7795 // because binlog_hton has not been completely set up.
7796 DBUG_ASSERT(opt_bin_log);
7797 binlog_cache_mngr *cache_mngr= thd_get_cache_mngr(this);
7798
7799 // cache_mngr is NULL until we call thd->binlog_setup_trx_data, so
7800 // we assert that this has been done.
7801 DBUG_ASSERT(cache_mngr != NULL);
7802
7803 binlog_cache_data *cache_data=
7804 cache_mngr->get_binlog_cache_data(is_transactional);
7805 DBUG_ASSERT(cache_data != NULL);
7806
7807 DBUG_RETURN(&cache_data->group_cache);
7808}
7809
7810/*
7811 These functions are placed in this file since they need access to

Callers

nothing calls this directly

Calls 2

thd_get_cache_mngrFunction · 0.85
get_binlog_cache_dataMethod · 0.80

Tested by

no test coverage detected