summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2002-03-02 22:00:37 -0700
committerunknown <sasha@mysql.sashanet.com>2002-03-02 22:00:37 -0700
commitce2b249935be3bab2b4b9790549f0be78bb0980d (patch)
tree0fc4c8ffadc73836db156e1d7d316f39bdce4053 /sql/slave.cc
parent7e1edb01dbb4756c88f9c93f188f03eb8d11142c (diff)
downloadmariadb-git-ce2b249935be3bab2b4b9790549f0be78bb0980d.tar.gz
fixed the use of unitialized variable - code now works on the test system
of one of our users which replicates from a live server. So I now have a lot of confidence in it and will push. It passes all tests, so I if I broke somebody's code in 3.23 merge this is your fault - you should have had a good test case :-) sql/slave.cc: added DBUG_ASSERT() sql/slave.h: fixed cache initialization problem
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index c63af63978d..b2fc42f5e97 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -361,6 +361,7 @@ int terminate_slave_thread(THD* thd, pthread_mutex_t* term_lock,
abstime.tv_sec=tv.tv_sec+2;
abstime.tv_nsec=tv.tv_usec*1000;
#endif
+ DBUG_ASSERT(cond_lock->count > 0 && cond_lock->thread == pthread_self());
pthread_cond_timedwait(term_cond, cond_lock, &abstime);
if (*slave_running)
KICK_SLAVE(thd);
@@ -947,7 +948,6 @@ int init_relay_log_info(RELAY_LOG_INFO* rli, const char* info_fname)
int info_fd;
const char* msg = 0;
int error = 0;
-
fn_format(fname, info_fname,
mysql_data_home, "", 4+32);
pthread_mutex_lock(&rli->data_lock);