Commit 85660d73 authored by Daniel Black's avatar Daniel Black

MDEV-7977 MYSQL_BIN_LOG::write_incident failing to release LOCK_log

This adds a unlock(LOCK_log) for the unlikely(!is_open()) branch
parent cc84ac3b
...@@ -5784,6 +5784,10 @@ bool MYSQL_BIN_LOG::write_incident(THD *thd) ...@@ -5784,6 +5784,10 @@ bool MYSQL_BIN_LOG::write_incident(THD *thd)
if (check_purge) if (check_purge)
purge(); purge();
} }
else
{
mysql_mutex_unlock(&LOCK_log);
}
DBUG_RETURN(error); DBUG_RETURN(error);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment