diff options
author | monty@narttu.mysql.fi <> | 2003-09-03 19:53:08 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-09-03 19:53:08 +0300 |
commit | 4b3b4b925086071003fb9cfcd218e9d0db4c4122 (patch) | |
tree | a927f30b44fb1ffd56321ff4510effc73a2e493e /sql/repl_failsafe.cc | |
parent | 32635549fcd7da44e14dee0aed0c74687cf8d459 (diff) | |
parent | 77a70a0a24ce658a3ee55248cb2e76f84afc1b88 (diff) | |
download | mariadb-git-4b3b4b925086071003fb9cfcd218e9d0db4c4122.tar.gz |
merge
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r-- | sql/repl_failsafe.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc index d9c09c88f0d..8f0e18999b3 100644 --- a/sql/repl_failsafe.cc +++ b/sql/repl_failsafe.cc @@ -250,6 +250,18 @@ static int find_target_pos(LEX_MASTER_INFO *mi, IO_CACHE *log, char *errmsg) /* Impossible */ } +/* + Before 4.0.15 we had a member of THD called log_pos, it was meant for + failsafe replication code in repl_failsafe.cc which is disabled until + it is reworked. Event's log_pos used to be preserved through + log-slave-updates to make code in repl_failsafe.cc work (this + function, SHOW NEW MASTER); but on the other side it caused unexpected + values in Exec_master_log_pos in A->B->C replication setup, + synchronization problems in master_pos_wait(), ... So we + (Dmitri & Guilhem) removed it. + + So for now this function is broken. +*/ int translate_master(THD* thd, LEX_MASTER_INFO* mi, char* errmsg) { @@ -415,6 +427,9 @@ static Slave_log_event* find_slave_event(IO_CACHE* log, return (Slave_log_event*)ev; } +/* + This function is broken now. See comment for translate_master(). + */ int show_new_master(THD* thd) { |