• Leonard Zhou's avatar
    BUG#39858 rpl.rpl_rotate (rpl.rpl_rotate_logs) failed on pushbuild: result mismatch · 99524127
    Leonard Zhou authored
    The method to purge binary log files produces different results in some platforms.
    The reason is that the purge time is calculated based on table modified time and
    that can't guarantee to purge master-bin.000002 in all platforms.(eg. windows)
    
    Use a new way that sets the time to purge binlog file 1 second after the last
    modified time of master-bin.000002.
    That can be sure that the file is always deleted in any platform.
    
    mysql-test/suite/rpl/r/rpl_rotate_logs.result:
      Test result
    mysql-test/suite/rpl/t/rpl_rotate_logs.test:
      Test file
    99524127
rpl_rotate_logs.test 5.33 KB