From dd90dae3c0f639ebc29be3477c8732ecefa6de1d Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Tue, 17 Nov 2015 18:33:08 +0100 Subject: [PATCH] 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 cf7f64f57d2..d9899267068 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -7739,11 +7739,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(timeout)); + thd_wait_end(thd); DBUG_RETURN(ret); }