1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#27438 rpl_rotate_logs fails on Windows

- Fix test case to work also when filesystem time differs
   from mysqld' time. I.e when running with data files on a
   network share.


mysql-test/r/rpl_rotate_logs.result:
  Update result file
mysql-test/t/rpl_rotate_logs.test:
  Calculate time to use in "purge master logs before" by taking
  last modification time of t2 and adding 1 second
  This is done in order to handle the case where file system time differs
  from mysqld's time
This commit is contained in:
unknown
2007-05-21 11:33:58 +02:00
parent f40047df9c
commit f0f783786d
2 changed files with 16 additions and 4 deletions

View File

@ -50,7 +50,10 @@ show binary logs;
Log_name File_size
master-bin.000002 363
master-bin.000003 407
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;
Log_name File_size
master-bin.000003 407