diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-09-17 22:27:45 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-09-17 22:27:45 +0200 |
commit | ade782c001affa69df80ed51e807e16198a9fe04 (patch) | |
tree | ced220c91c4494e946fdb6046b9b550c567c5198 /mysql-test/main/windows_debug.result | |
parent | 7e07e38cf687ccd7fa3bd3a35c1eb7e4b307ca5f (diff) | |
download | mariadb-git-ade782c001affa69df80ed51e807e16198a9fe04.tar.gz |
MDEV-23741 Windows : error when renaming file in ALTER TABLE
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.
Diffstat (limited to 'mysql-test/main/windows_debug.result')
-rw-r--r-- | mysql-test/main/windows_debug.result | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/main/windows_debug.result b/mysql-test/main/windows_debug.result new file mode 100644 index 00000000000..7cc40b6de26 --- /dev/null +++ b/mysql-test/main/windows_debug.result @@ -0,0 +1,4 @@ +# mdev-23741 sharing violation when renaming .frm file in ALTER +CREATE TABLE t(i int); +SET STATEMENT debug_dbug='+d, win_simulate_rename_error' FOR ALTER TABLE t ADD PRIMARY KEY (i); +DROP TABLE t; |