summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_rotate_logs.test
diff options
context:
space:
mode:
authorguilhem@gbichot2 <>2003-11-19 23:39:08 +0100
committerguilhem@gbichot2 <>2003-11-19 23:39:08 +0100
commit4bd3b096a0db31e64e6a97b03ab44a1ddf91aa50 (patch)
tree07787624924a189e3c5b358ab3590457e10a15ac /mysql-test/t/rpl_rotate_logs.test
parent74165e729c96dda680f56de8263ba5e841ebbd5d (diff)
downloadmariadb-git-4bd3b096a0db31e64e6a97b03ab44a1ddf91aa50.tar.gz
Official builds are tested with mysql-test-run --sleep=10, and the slave
has (in mysql-test-run) a slave-net-timeout=10. So the 'sleep 1' below was converted in 'sleep 10', so slave thought that connection was down, so reconnected, so got an additional (fake) Rotate event, which shifted the positions displayed by SHOW SLAVE STATUS.
Diffstat (limited to 'mysql-test/t/rpl_rotate_logs.test')
-rw-r--r--mysql-test/t/rpl_rotate_logs.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/t/rpl_rotate_logs.test b/mysql-test/t/rpl_rotate_logs.test
index 78213c6a750..7560d56af1c 100644
--- a/mysql-test/t/rpl_rotate_logs.test
+++ b/mysql-test/t/rpl_rotate_logs.test
@@ -101,7 +101,8 @@ show master logs;
# we just tests if synonyms are accepted
purge binary logs to 'master-bin.000002';
show binary logs;
---sleep 1;
+# sleeping 10 seconds or more would make the slave believe connection is down
+--real_sleep 1;
purge master logs before now();
show binary logs;
insert into t2 values (65);