[Commits] e669a5f: MDEV-7588 Add thd_wait_begin/end to notify threadpool of binlog waits

wlad at mariadb.com wlad at mariadb.com
Tue Nov 17 19:33:31 EET 2015


revision-id: e669a5fd87b28158cbb4454b4bcce7fe4a4ef8b8 (mariadb-5.5.46-6-ge669a5f)
parent(s): 7e4da9b370d032db9015adb47ad2ff585aeaea5d
committer: Vladislav Vaintroub
timestamp: 2015-11-17 18:33:08 +0100
message:

MDEV-7588 Add thd_wait_begin/end to notify threadpool of binlog waits

---
 sql/log.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sql/log.cc b/sql/log.cc
index 0940cb9..a87ec72 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -6296,11 +6296,13 @@ int MYSQL_BIN_LOG::wait_for_update_bin_log(THD* thd,
   int ret= 0;
   DBUG_ENTER("wait_for_update_bin_log");
 
+  thd_wait_begin(thd, THD_WAIT_BINLOG);
   if (!timeout)
     mysql_cond_wait(&update_cond, &LOCK_log);
   else
     ret= mysql_cond_timedwait(&update_cond, &LOCK_log,
                               const_cast<struct timespec *>(timeout));
+  thd_wait_end(thd);
   DBUG_RETURN(ret);
 }
 


More information about the commits mailing list