mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
d360fa6fa8
Add retry logic for CreateFile, DeleteFile, or MoveFile when GetLastError() is ERROR_SHARING_VIOLATION.
10 lines
295 B
Text
10 lines
295 B
Text
# mdev-23741 sharing violation when renaming .frm file in ALTER
|
|
SET @saved_dbug = @@SESSION.debug_dbug;
|
|
SET debug_dbug='+d,file_sharing_violation';
|
|
CREATE TABLE t(i int) ENGINE=ARIA;
|
|
ALTER TABLE t ADD PRIMARY KEY (i);
|
|
FLUSH TABLES t;
|
|
SELECT * FROM t;
|
|
i
|
|
DROP TABLE t;
|
|
SET debug_dbug=@saved_dbug;
|