1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Add extra INSERT to make usre sync_slave_with_master has job to do

This commit is contained in:
msvensson@pilot.blaudden
2007-04-05 09:10:22 +02:00
parent cedde5758d
commit bc5462fb44
2 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,7 @@ STOP SLAVE;
select * from t1; select * from t1;
t t
1 1
insert into t1 values (NULL);
show slave status; show slave status;
Slave_IO_State # Slave_IO_State #
Master_Host 127.0.0.1 Master_Host 127.0.0.1

View File

@ -54,6 +54,9 @@ while ($i)
start slave; start slave;
enable_query_log; enable_query_log;
connection master; connection master;
# INSERT one more record to make sure
# the sync has something to do
insert into t1 values (NULL);
sync_slave_with_master; sync_slave_with_master;
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR $MASTER_MYPORT MASTER_MYPORT --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR $MASTER_MYPORT MASTER_MYPORT
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 # --replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #