-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.5.42, 10.0
-
Fix Version/s: 5.5.43
-
Component/s: Replication
-
Labels:
sql/log.cc
MYSQL_BIN_LOG::write_incident
|
|
mysql_mutex_lock(&LOCK_log);
|
if (likely(is_open()))
|
...
|
mysql_mutex_unlock(&LOCK_log);
|
}
|
DBUG_RETURN(error);
|
|
There is no mysql_mutex_unlock(LOCK_log) in the !likely(is_open()) if branch. It seems the caller of this function doesn't release it either.