diff options
author | Luke Chen <luke.chen@mongodb.com> | 2020-08-17 15:56:33 +1000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-17 06:16:56 +0000 |
commit | b2c2c5e28402f113ac52f6ce5e629d59fc09b995 (patch) | |
tree | f66c98f6fbbc5fae973620de07d2f6e262c0bd44 /src/third_party/wiredtiger/src/os_win/os_fs.c | |
parent | 3cc779415f2777223b5549d3dfd1b85eef01842b (diff) | |
download | mongo-b2c2c5e28402f113ac52f6ce5e629d59fc09b995.tar.gz |
Import wiredtiger: 1a3371324597a8f124c126c2df11303ded4d8dd9 from branch mongodb-4.6
ref: 1124e23db6..1a33713245
for: 4.5.1
WT-5940 Migrate to Clang Format 10
WT-6000 Enhance incremental backup testing in format to support restart
WT-6471 Avoid the error message for non-existent clang-format binary
WT-6560 Fix usage of global salvage in WT utility
WT-6577 History store dump outputs confusing time window
WT-6586 Tombstone inserted to history store should also be flagged as WT_UPDATE_HS
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.c | 22 |
1 files changed, 10 insertions, 12 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 276aae62796..9463252a6bb 100644 --- a/src/third_party/wiredtiger/src/os_win/os_fs.c +++ b/src/third_party/wiredtiger/src/os_win/os_fs.c @@ -268,8 +268,8 @@ __win_file_read( nr = 0; /* Assert direct I/O is aligned and a multiple of the alignment. */ - WT_ASSERT( - session, !win_fh->direct_io || S2C(session)->buffer_alignment == 0 || + WT_ASSERT(session, + !win_fh->direct_io || S2C(session)->buffer_alignment == 0 || (!((uintptr_t)buf & (uintptr_t)(S2C(session)->buffer_alignment - 1)) && len >= S2C(session)->buffer_alignment && len % S2C(session)->buffer_alignment == 0)); @@ -283,8 +283,7 @@ __win_file_read( windows_error = __wt_getlasterror(); ret = __wt_map_windows_error(windows_error); __wt_err(session, ret, - "%s: handle-read: ReadFile: failed to read %lu " - "bytes at offset %" PRIuMAX ": %s", + "%s: handle-read: ReadFile: failed to read %lu bytes at offset %" PRIuMAX ": %s", file_handle->name, chunk, (uintmax_t)offset, __wt_formatmessage(session, windows_error)); return (ret); @@ -416,8 +415,8 @@ __win_file_write( nw = 0; /* Assert direct I/O is aligned and a multiple of the alignment. */ - WT_ASSERT( - session, !win_fh->direct_io || S2C(session)->buffer_alignment == 0 || + WT_ASSERT(session, + !win_fh->direct_io || S2C(session)->buffer_alignment == 0 || (!((uintptr_t)buf & (uintptr_t)(S2C(session)->buffer_alignment - 1)) && len >= S2C(session)->buffer_alignment && len % S2C(session)->buffer_alignment == 0)); @@ -431,8 +430,7 @@ __win_file_write( windows_error = __wt_getlasterror(); ret = __wt_map_windows_error(windows_error); __wt_err(session, ret, - "%s: handle-write: WriteFile: failed to write %lu " - "bytes at offset %" PRIuMAX ": %s", + "%s: handle-write: WriteFile: failed to write %lu bytes at offset %" PRIuMAX ": %s", file_handle->name, chunk, (uintmax_t)offset, __wt_formatmessage(session, windows_error)); return (ret); @@ -530,10 +528,10 @@ __win_open_file(WT_FILE_SYSTEM *file_system, WT_SESSION *wt_session, const char windows_error = __wt_getlasterror(); ret = __wt_map_windows_error(windows_error); __wt_err(session, ret, - win_fh->direct_io ? "%s: handle-open: CreateFileW: failed with direct " - "I/O configured, some filesystem types do not " - "support direct I/O: %s" : - "%s: handle-open: CreateFileW: %s", + win_fh->direct_io ? + "%s: handle-open: CreateFileW: failed with direct I/O configured, some filesystem " + "types do not support direct I/O: %s" : + "%s: handle-open: CreateFileW: %s", name, __wt_formatmessage(session, windows_error)); WT_ERR(ret); } |