| 930 | } |
| 931 | |
| 932 | static 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 | |
| 946 | static bool should_write_gtids(const THD *thd) { |
| 947 | /* |
nothing calls this directly
no test coverage detected