| 7788 | |
| 7789 | |
| 7790 | Group_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 |
nothing calls this directly
no test coverage detected