summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2015-11-17 18:33:08 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2015-11-17 20:08:36 +0100
commitdd90dae3c0f639ebc29be3477c8732ecefa6de1d (patch)
tree5ae720efbd74318ac10a25d31028cde92da3177b
parent4008a3e55bda76fab622de163b174008d2d58abb (diff)
downloadmariadb-git-dd90dae3c0f639ebc29be3477c8732ecefa6de1d.tar.gz
MDEV-7588 Add thd_wait_begin/end to notify threadpool of binlog waits
-rw-r--r--sql/log.cc2
1 files changed, 2 insertions, 0 deletions
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<struct timespec *>(timeout));
+ thd_wait_end(thd);
DBUG_RETURN(ret);
}