mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Test's result update because std_data/words.dat has been lengthened by 500 bytes.
Increased some tests' robustness a bit : - Added RESET MASTER to all tests who do SHOW BINLOG EVENTS, to make them independent from previous tests. - Added save_master_pos to these tests to wait for the slave to start before purging its binary logs.
This commit is contained in:
@@ -3,6 +3,23 @@
|
||||
#
|
||||
source include/master-slave.inc;
|
||||
|
||||
# Clean up old slave's binlogs.
|
||||
# The slave is started with --log-slave-updates
|
||||
# and this test does SHOW BINLOG EVENTS on the slave's
|
||||
# binlog. But previous tests can influence the current test's
|
||||
# binlog (e.g. a temporary table in the previous test has not
|
||||
# been explicitly deleted, or it has but the slave hasn't had
|
||||
# enough time to catch it before STOP SLAVE,
|
||||
# and at the beginning of the current
|
||||
# test the slave immediately writes DROP TEMPORARY TABLE this_old_table).
|
||||
# We wait for the slave to have written all he wants to the binlog
|
||||
# (otherwise RESET MASTER may come too early).
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
sync_with_master;
|
||||
reset master;
|
||||
connection master;
|
||||
|
||||
create table t1(n char(30));
|
||||
set @i1:=12345678901234, @i2:=-12345678901234, @i3:=0, @i4:=-1;
|
||||
set @s1:='This is a test', @r1:=12.5, @r2:=-12.5;
|
||||
|
||||
Reference in New Issue
Block a user