summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-07-18 14:26:43 -0600
committerunknown <sasha@mysql.sashanet.com>2001-07-18 14:26:43 -0600
commit76eaa2595f785d2664bc0165cf8431c79ed92659 (patch)
tree8d1f8589119cc419e23bbb513081d4be35e4aa42 /sql/slave.cc
parent2cbf3b9b532e048dbe3d42669bff539c5864236e (diff)
downloadmariadb-git-76eaa2595f785d2664bc0165cf8431c79ed92659.tar.gz
fixed mysterious offset confusion bug
added a test case for it - took some creative work to figure out how to make it happen at will updated the manual Docs/manual.texi: fixed wrong info on SLAVE_SKIP_COUNTER fixed wrong info in BitKeeper tree build instructions updated change history about bug fix mysql-test/t/rpl_sporadic_master.test: tried hard to get slave confused, but failed. nevertheless, a more exhaustive test case does not hurt sql/slave.cc: fixed mysterious offset confusion bug
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index ab1a880a46e..7cb9bdfd3fc 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -1222,6 +1222,8 @@ pthread_handler_decl(handle_slave,arg __attribute__((unused)))
thd->thread_stack = (char*)&thd; // remember where our stack is
thd->temporary_tables = save_temporary_tables; // restore temp tables
threads.append(thd);
+ glob_mi.pending = 0; //this should always be set to 0 when the slave thread
+ // is started
DBUG_PRINT("info",("master info: log_file_name=%s, position=%s",
glob_mi.log_file_name, llstr(glob_mi.pos,llbuff)));