Skip to content

Commit

Permalink
MDEV-7588 Add thd_wait_begin/end to notify threadpool of binlog waits
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Nov 17, 2015
1 parent 4008a3e commit dd90dae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit dd90dae

Please sign in to comment.