#At file:///home/andrei/MySQL/BZR/2a-23May/WL/mysql-next-mr-wl5569/ based on revid:andrei.elkin@stripped
3266 Andrei Elkin 2010-12-24
wl#5569 MTS
the timed-wait loop of SQL thread required a break-through parameter in
case the signal missed in action and just timeout would be reported
modified:
sql/rpl_slave.cc
=== modified file 'sql/rpl_slave.cc'
--- a/sql/rpl_slave.cc 2010-12-23 14:03:39 +0000
+++ b/sql/rpl_slave.cc 2010-12-23 23:57:03 +0000
@@ -6105,6 +6105,8 @@ static Log_event* next_event(Relay_log_i
int ret= 0;
struct timespec waittime;
ulonglong period= static_cast<ulonglong>(mts_checkpoint_period * 1000000ULL);
+ ulong signal_cnt= rli->relay_log.signal_cnt;
+
do
{
mts_checkpoint_routine(rli, period, FALSE, FALSE); // ALFRANIO ERROR
@@ -6114,7 +6116,8 @@ static Log_event* next_event(Relay_log_i
"waiting for the slave I/O "
"thread to update it");
ret= rli->relay_log.wait_for_update_relay_log(thd, &waittime);
- } while ((ret == ETIMEDOUT || ret == ETIME) && !thd->killed);
+ } while ((ret == ETIMEDOUT || ret == ETIME) /* todo:remove */ &&
+ signal_cnt == rli->relay_log.signal_cnt && !thd->killed);
}
else
{
Attachment: [text/bzr-bundle] bzr/andrei.elkin@oracle.com-20101223235703-qfkwj4gp93v6zh8n.bundle
| Thread |
|---|
| • bzr commit into mysql-next-mr-wl5569 branch (andrei.elkin:3266) WL#5569 | Andrei Elkin | 24 Dec |