summaryrefslogtreecommitdiff
path: root/sql/slave.h
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.h
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.h')
-rw-r--r--sql/slave.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/slave.h b/sql/slave.h
index 59263a96687..9d3f55cbfbf 100644
--- a/sql/slave.h
+++ b/sql/slave.h
@@ -157,6 +157,7 @@ typedef struct st_relay_log_info
log_pos_current(0)
{
relay_log_name[0] = master_log_name[0] = 0;
+ bzero(&info_file,sizeof(info_file));
pthread_mutex_init(&run_lock, MY_MUTEX_INIT_FAST);
pthread_mutex_init(&data_lock, MY_MUTEX_INIT_FAST);
pthread_cond_init(&data_cond, NULL);
@@ -271,6 +272,7 @@ typedef struct st_master_info
st_master_info():fd(-1), io_thd(0), inited(0), old_format(0)
{
host[0] = 0; user[0] = 0; password[0] = 0;
+ bzero(&file,sizeof(file));
pthread_mutex_init(&run_lock, MY_MUTEX_INIT_FAST);
pthread_mutex_init(&data_lock, MY_MUTEX_INIT_FAST);
pthread_cond_init(&data_cond, NULL);