mirror of
https://github.com/MariaDB/server.git
synced 2025-11-27 05:41:41 +03:00
The presumed reason for the error is that the file was opened by 3rd party antivirus or backup program, causing ERROR_SHARING_VIOLATION on rename. The fix, actually a workaround, is to retry MoveFileEx couple of times before finally giving up. We expect 3rd party programs not to hold file for extended time.
12 lines
323 B
Plaintext
12 lines
323 B
Plaintext
# Windows-specific tests , debug mode
|
|
|
|
--source include/have_debug.inc
|
|
--source include/windows.inc
|
|
|
|
--echo # mdev-23741 sharing violation when renaming .frm file in ALTER
|
|
CREATE TABLE t(i int);
|
|
SET STATEMENT debug_dbug='+d,rename_sharing_violation' FOR ALTER TABLE t ADD PRIMARY KEY (i);
|
|
DROP TABLE t;
|
|
|
|
#End of 10.3 tests
|