summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-11-02 19:28:49 +0200
committerunknown <monty@mysql.com>2005-11-02 19:28:49 +0200
commit44a8096dd4b7475cb36c4a5bc0b7f283e11ba340 (patch)
tree3fdc238eafaddf943b0c994a2e02b8b046cc1262 /sql/log.cc
parent62a2162c1c464aad0fb7f42f8324ef3d8c4532a3 (diff)
downloadmariadb-git-44a8096dd4b7475cb36c4a5bc0b7f283e11ba340.tar.gz
wait_for_update must unlock mutex.
(Fixed failure in rpl0000008.test)
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index f9f71e2d55a..baa2edab101 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -2074,7 +2074,10 @@ void MYSQL_LOG::wait_for_update(THD* thd, bool is_slave)
DBUG_ENTER("wait_for_update");
if (reset_pending)
+ {
+ pthread_mutex_unlock(&LOCK_log);
DBUG_VOID_RETURN;
+ }
old_msg= thd->enter_cond(&update_cond, &LOCK_log,
is_slave ?