diff options
author | unknown <mats@mysql.com> | 2004-11-25 09:26:45 +0100 |
---|---|---|
committer | unknown <mats@mysql.com> | 2004-11-25 09:26:45 +0100 |
commit | 324b3a458feb271a6727f572a9d99d4804a1bf60 (patch) | |
tree | 2a950449e3650d6c0857e79a0a83cc2595692170 /sql/repl_failsafe.cc | |
parent | 40b166caf8238b0570cfa415af94c3c993cb438f (diff) | |
download | mariadb-git-324b3a458feb271a6727f572a9d99d4804a1bf60.tar.gz |
Fix for Bug#6148. Only rewind read position in binary log when the
slave SQL thread is started.
sql/slave.cc:
Adding threads to init as parameter to init_master_info.
Only rewind read position when starting SQL thread.
sql/slave.h:
Adding threads to init as parameter to init_master_info.
Only rewind read position when starting SQL thread.
sql/sql_repl.cc:
Adding threads to init as parameter to init_master_info.
Only rewind read position when starting SQL thread.
sql/repl_failsafe.cc:
Adding threads to init as parameter to init_master_info.
Only rewind read position when starting SQL thread.
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r-- | sql/repl_failsafe.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc index 9fa6ea843f1..84640fbc968 100644 --- a/sql/repl_failsafe.cc +++ b/sql/repl_failsafe.cc @@ -892,7 +892,8 @@ int load_master_data(THD* thd) setting active_mi, because init_master_info() sets active_mi with defaults. */ - if (init_master_info(active_mi, master_info_file, relay_log_info_file, 0)) + if (init_master_info(active_mi, master_info_file, relay_log_info_file, + 0, (SLAVE_IO | SLAVE_SQL))) send_error(&thd->net, ER_MASTER_INFO); strmake(active_mi->master_log_name, row[0], sizeof(active_mi->master_log_name)); |