Commit f0598b6d authored by unknown's avatar unknown

sql/slave.cc

    fixed skipping bug in bi-directional replication


sql/slave.cc:
  fixed skipping bug in bi-directional replication
parent 5a09cad9
...@@ -849,7 +849,8 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len) ...@@ -849,7 +849,8 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len)
mi->inc_pos(event_len); mi->inc_pos(event_len);
flush_master_info(mi); flush_master_info(mi);
--slave_skip_counter; if(slave_skip_counter)
--slave_skip_counter;
delete ev; delete ev;
return 0; // avoid infinite update loops return 0; // avoid infinite update loops
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment