• Lorna Luo's avatar
    Make 'move_file' command more reliable in 3 innodb tests · 0cc1694e
    Lorna Luo authored
    The tests innodb.import_tablespace_race, innodn.restart, and innodb.innodb-wl5522 move
    the tablespace file between the data directory and the tmp directory specified by
    global environment variables. However this is risky because it's not unusual that the
    set tmp directory (often under /tmp) is mounted on another disk partition or device,
    and 'move_file' command may fail with "Errcode: 18 'Invalid cross-device link.'"
    
    For innodb.import_tablespace_race and innodb.innodb-wl5522, moving files
    across directories is not necessary. Modify the tests so they rename
    files under the same directory. For innodb.restart, instead of moving
    between datadir and MYSQL_TMPDIR, move the files under MYSQLTEST_VARDIR.
    
    All new code of the whole pull request, including one or several files that
    are either new files or modified ones, are contributed under the BSD-new license.
    I am contributing on behalf of my employer Amazon Web Services, Inc.
    0cc1694e
innodb-wl5522.result 24.4 KB