Merge dsl-hkigw8-feaef900-46.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0-merge

into  dsl-hkigw8-feaef900-46.dhcp.inet.fi:/home/elkin/MySQL/TEAM/FIXES/merge_50


mysql-test/r/rpl_deadlock_innodb.result:
  results changed
mysql-test/extra/rpl_tests/rpl_deadlock.test:
  taking a fix for testing timed-out behaviour.
sql/slave.cc:
  just comments are fixed due to changes in behavior of timed-out msta.
This commit is contained in:
unknown 2006-10-30 13:07:36 +02:00
commit 9fdc9acb03
2 changed files with 13 additions and 6 deletions

View file

@ -3175,6 +3175,8 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
We were in a transaction which has been rolled back because of a
temporary error;
let's seek back to BEGIN log event and retry it all again.
Note, if lock wait timeout (innodb_lock_wait_timeout exceeded)
there is no rollback since 5.0.13 (ref: manual).
We have to not only seek but also
a) init_master_info(), to seek back to hot relay log's start for later
(for when we will come back to this hot log after re-processing the
@ -4454,7 +4456,7 @@ static int connect_to_master(THD* thd, MYSQL* mysql, MASTER_INFO* mi,
'%s@%s:%d': \
Error: '%s' errno: %d retry-time: %d retries: %lu",
(reconnect ? "reconnecting" : "connecting"),
mi->user,mi->host,mi->port,
mi->user, mi->host, mi->port,
mysql_error(mysql), last_errno,
mi->connect_retry,
master_retry_count);