mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
Merge pilot.blaudden:/home/msvensson/mysql/bug27438/my50-bug27438
into pilot.blaudden:/home/msvensson/mysql/bug27438/my51-bug27438
This commit is contained in:
commit
4698a61ec4
2 changed files with 16 additions and 4 deletions
|
@ -50,7 +50,10 @@ show binary logs;
|
||||||
Log_name File_size
|
Log_name File_size
|
||||||
master-bin.000002 371
|
master-bin.000002 371
|
||||||
master-bin.000003 415
|
master-bin.000003 415
|
||||||
purge master logs before now();
|
select @time_for_purge:=DATE_ADD(UPDATE_TIME, INTERVAL 1 SECOND)
|
||||||
|
from information_schema.tables
|
||||||
|
where TABLE_SCHEMA="test" and TABLE_NAME="t2";
|
||||||
|
purge master logs before (@time_for_purge);
|
||||||
show binary logs;
|
show binary logs;
|
||||||
Log_name File_size
|
Log_name File_size
|
||||||
master-bin.000003 415
|
master-bin.000003 415
|
||||||
|
|
|
@ -110,9 +110,18 @@ show master logs;
|
||||||
# we just tests if synonyms are accepted
|
# we just tests if synonyms are accepted
|
||||||
purge binary logs to 'master-bin.000002';
|
purge binary logs to 'master-bin.000002';
|
||||||
show binary logs;
|
show binary logs;
|
||||||
# sleeping 10 seconds or more would make the slave believe connection is down
|
|
||||||
--real_sleep 1
|
# Calculate time to use in "purge master logs before" by taking
|
||||||
purge master logs before now();
|
# last modification time of t2 and adding 1 second
|
||||||
|
# This is donw in order to handle the case where file system
|
||||||
|
# time differs from mysqld's time
|
||||||
|
--disable_result_log
|
||||||
|
select @time_for_purge:=DATE_ADD(UPDATE_TIME, INTERVAL 1 SECOND)
|
||||||
|
from information_schema.tables
|
||||||
|
where TABLE_SCHEMA="test" and TABLE_NAME="t2";
|
||||||
|
--enable_result_log
|
||||||
|
|
||||||
|
purge master logs before (@time_for_purge);
|
||||||
show binary logs;
|
show binary logs;
|
||||||
insert into t2 values (65);
|
insert into t2 values (65);
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
|
|
Loading…
Add table
Reference in a new issue