MDEV-25524 fixup for Windows
In commit 54e2e70194b9374543fdfc81a47d583e34771fac we relaxed a debug assertion in the POSIX version of os_file_rename_func() only. Let us relax it also on Windows, so that the test innodb.truncate_crash will pass.
This commit is contained in:
parent
54e2e70194
commit
db0782243c
@ -2831,7 +2831,8 @@ os_file_rename_func(
|
||||
|
||||
/* New path must not exist. */
|
||||
ut_ad(os_file_status(newpath, &exists, &type));
|
||||
ut_ad(!exists);
|
||||
/* MDEV-25506 FIXME: Remove the strstr() */
|
||||
ut_ad(!exists || strstr(oldpath, "/" TEMP_FILE_PREFIX_INNODB));
|
||||
|
||||
/* Old path must exist. */
|
||||
ut_ad(os_file_status(oldpath, &exists, &type));
|
||||
|
Loading…
x
Reference in New Issue
Block a user