summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_win/os_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/os_win/os_fs.c')
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_fs.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/third_party/wiredtiger/src/os_win/os_fs.c b/src/third_party/wiredtiger/src/os_win/os_fs.c
index 597dfaf81dd..276aae62796 100644
--- a/src/third_party/wiredtiger/src/os_win/os_fs.c
+++ b/src/third_party/wiredtiger/src/os_win/os_fs.c
@@ -109,13 +109,11 @@ __win_fs_rename(WT_FILE_SYSTEM *file_system, WT_SESSION *wt_session, const char
WT_ERR(__wt_to_utf16_string(session, to, &to_wide));
/*
- * We want an atomic rename, but that's not guaranteed by MoveFileExW
- * (or by any MSDN API). Don't set the MOVEFILE_COPY_ALLOWED flag to
- * prevent the system from falling back to a copy and delete process.
- * Do set the MOVEFILE_WRITE_THROUGH flag so the window is as small
- * as possible, just in case. WiredTiger renames are done in a single
- * directory and we expect that to be an atomic metadata update on any
- * modern filesystem.
+ * We want an atomic rename, but that's not guaranteed by MoveFileExW (or by any MSDN API).
+ * Don't set the MOVEFILE_COPY_ALLOWED flag to prevent the system from falling back to a copy
+ * and delete process. Do set the MOVEFILE_WRITE_THROUGH flag so the window is as small as
+ * possible, just in case. WiredTiger renames are done in a single directory and we expect that
+ * to be an atomic metadata update on any modern filesystem.
*/
WT_WINCALL_RETRY(MoveFileExW(from_wide->data, to_wide->data,
MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH),