mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge tag 'mariadb-5.5.47' into 5.5-galera
This commit is contained in:
@@ -6440,11 +6440,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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user