diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-08-20 12:09:17 +0300 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-08-20 12:09:17 +0300 |
commit | 7d3a9b4cf68475f24b24f64ae43a205d6016b83e (patch) | |
tree | d7d20b0fb3455280191417a9653848ff8d25442e /sql/log.cc | |
parent | dd9329761ae48e3d8518f882d1ca12737a4165d0 (diff) | |
parent | 69c280506808e434e20669d838724d43b675540c (diff) | |
download | mariadb-git-7d3a9b4cf68475f24b24f64ae43a205d6016b83e.tar.gz |
merge
Diffstat (limited to 'sql/log.cc')
-rw-r--r-- | sql/log.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc index 614a07e6b63..3f41bf1c929 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -1628,6 +1628,19 @@ static int binlog_rollback(handlerton *hton, THD *thd, bool all) DBUG_RETURN(error); } +/** + Cleanup the cache. + + @param thd The client thread that wants to clean up the cache. +*/ +void MYSQL_BIN_LOG::reset_gathered_updates(THD *thd) +{ + binlog_trx_data *const trx_data= + (binlog_trx_data*) thd_get_ha_data(thd, binlog_hton); + + trx_data->reset(); +} + void MYSQL_BIN_LOG::set_write_error(THD *thd) { DBUG_ENTER("MYSQL_BIN_LOG::set_write_error"); |