From fdd27497dfa2fc1e39cd37a4597e857af4252a6d Mon Sep 17 00:00:00 2001 From: Sergei Golubchik <serg@mariadb.org> Date: Tue, 21 May 2024 00:24:35 +0200 Subject: [PATCH] cleanup: remove redundant code reinit_io_cache() resets and restores MY_TRACK_WITH_LIMIT internally --- sql/log.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sql/log.cc b/sql/log.cc index 2e87cadca2e..c9812e39757 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -7924,14 +7924,7 @@ int Event_log::write_cache(THD *thd, binlog_cache_data *cache_data) DBUG_RETURN(res ? ER_ERROR_ON_WRITE : 0); } - /* - Allow flush of transaction logs to temporary go over the tmp space limit - as we do not want the commit to fail - */ - cache->myflags&= ~MY_TRACK_WITH_LIMIT; - res= reinit_io_cache(cache, READ_CACHE, 0, 0, 0); - cache->myflags|= MY_TRACK_WITH_LIMIT; - if (res) + if ((res= reinit_io_cache(cache, READ_CACHE, 0, 0, 0))) DBUG_RETURN(ER_ERROR_ON_WRITE); /* Amount of remaining bytes in the IO_CACHE read buffer. */ -- 2.30.9