diff options
Diffstat (limited to 'sql/log.cc')
-rw-r--r-- | sql/log.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/log.cc b/sql/log.cc index c0b3f36ee78..a46c85e503b 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -567,8 +567,11 @@ void thd_binlog_trx_reset(THD * thd) { binlog_cache_mngr *const cache_mngr= (binlog_cache_mngr*) thd_get_ha_data(thd, binlog_hton); - if (cache_mngr) cache_mngr->reset(false, true); - } + if (cache_mngr) + { + cache_mngr->reset_cache(&cache_mngr->stmt_cache); + cache_mngr->reset_cache(&cache_mngr->trx_cache); + } thd->clear_binlog_table_maps(); } |