diff options
author | Keith Bostic <keith@wiredtiger.com> | 2016-04-01 08:07:34 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2016-04-01 08:07:34 -0400 |
commit | 9b3d1f470e9623364d3172a70c542fb9f3b60d11 (patch) | |
tree | c9b0f796a8f2515e7fee169d9b872b57690e6018 | |
parent | cb833ba393ce494bec2e6e364d6a09514b213ab2 (diff) | |
download | mongo-9b3d1f470e9623364d3172a70c542fb9f3b60d11.tar.gz |
WT-2525: in-memory configurations: miscellaneous cleanups
KNF
-rw-r--r-- | src/os_common/filename.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/os_common/filename.c b/src/os_common/filename.c index c1109bfc75e..dfd67284948 100644 --- a/src/os_common/filename.c +++ b/src/os_common/filename.c @@ -176,10 +176,8 @@ __wt_copy_and_sync(WT_SESSION *wt_session, const char *from, const char *to) WT_ERR(__wt_filesize(session, ffh, &size)); for (offset = 0; size > 0; size -= n, offset += n) { n = WT_MIN(size, WT_BACKUP_COPY_SIZE); - WT_ERR(__wt_read( - session, ffh, offset, (size_t)n, buf)); - WT_ERR(__wt_write( - session, tfh, offset, (size_t)n, buf)); + WT_ERR(__wt_read(session, ffh, offset, (size_t)n, buf)); + WT_ERR(__wt_write(session, tfh, offset, (size_t)n, buf)); } /* Close the from handle, then swap the temporary file into place. */ |