summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2003-12-17 23:29:11 +0100
committerunknown <guilhem@mysql.com>2003-12-17 23:29:11 +0100
commitf8d7b467b824286cd699ec644aada6a5a1fd1f29 (patch)
treed08a3ab1ec5566e76ac792f01e5cf75d8991a6e3 /sql/slave.cc
parenta8e8a24990c4b4500eb34417f7b5e4115d288af2 (diff)
downloadmariadb-git-f8d7b467b824286cd699ec644aada6a5a1fd1f29.tar.gz
Fix for BUG#2145 "mysqld becomes unreliable if unable to create a relay log when replic starts":
release the mutex before exiting the function, or it will be kept forever (=> START SLAVE, STOP SLAVE, etc will hang). sql/slave.cc: release the mutex before exiting the function, or it will be kept forever (=> START SLAVE, STOP SLAVE, etc will hang).
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 25eeb34e3a7..116d602b238 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -1321,6 +1321,7 @@ int init_relay_log_info(RELAY_LOG_INFO* rli, const char* info_fname)
1 /* no auto events */,
max_relay_log_size ? max_relay_log_size : max_binlog_size))
{
+ pthread_mutex_unlock(&rli->data_lock);
sql_print_error("Failed in open_log() called from init_relay_log_info()");
DBUG_RETURN(1);
}