mirror of
https://github.com/MariaDB/server.git
synced 2025-04-19 13:45:32 +02:00
MDEV-7588 Add thd_wait_begin/thd_wait_end to wait_for_binlog_endpos
This commit is contained in:
parent
73fc19bbcd
commit
2f8c84fd16
1 changed files with 2 additions and 0 deletions
|
@ -8049,12 +8049,14 @@ int MYSQL_BIN_LOG::wait_for_update_binlog_end_pos(THD* thd,
|
|||
int ret= 0;
|
||||
DBUG_ENTER("wait_for_update_binlog_end_pos");
|
||||
|
||||
thd_wait_begin(thd, THD_WAIT_BINLOG);
|
||||
mysql_mutex_assert_owner(get_binlog_end_pos_lock());
|
||||
if (!timeout)
|
||||
mysql_cond_wait(&update_cond, get_binlog_end_pos_lock());
|
||||
else
|
||||
ret= mysql_cond_timedwait(&update_cond, get_binlog_end_pos_lock(),
|
||||
timeout);
|
||||
thd_wait_end(thd);
|
||||
DBUG_RETURN(ret);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue