diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-07-14 20:36:33 -0400 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-07-15 10:36:33 +1000 |
commit | 11f018322c3f84552f2b1fe79f2ca9d6585577fb (patch) | |
tree | 04400eefdedfd08dfb5b833c08fc3147de0b3bfd /src/btree | |
parent | 55f4584c9f3616571b77bf3876cae8c9ae0b1f93 (diff) | |
download | mongo-11f018322c3f84552f2b1fe79f2ca9d6585577fb.tar.gz |
WT-2760 Fix a bug in backup related to directory sync. Change the filesystem API to make durable the default (#2867)
Change the default remove/rename calls to flush the enclosing directory.
Simplify the pluggable file system API by replacing the directory-sync method
with "durable" boolean argument to the remove, rename and open-file methods.
* Add "durable" arguments to relevant functions so that each remove or rename
call specifies its durability requirements.
* Switch the WT_FILE_SYSTEM::fs_open_file type enum from WT_OPEN_FILE_TYPE,
with WT_OPEN_XXX names, to the WT_FS_OPEN_FILE_TYPE, with WT_FS_OPEN_XXX
names.
Switch the WT_FILE_SYSTEM::fs_open_file flags from WT_OPEN_XXX names to
WT_FS_OPEN_XXX names.
* Replace the "bool durable" argument to WT_FILE_SYSTEM.fs_remove and
WT_FILE_SYSTEM.fs_rename with a "uint32_t flags" argument, and the
WT_FS_DURABLE flag.
* Remove a stray bracket.
Diffstat (limited to 'src/btree')
-rw-r--r-- | src/btree/bt_huffman.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btree/bt_huffman.c b/src/btree/bt_huffman.c index 9e9d69c342e..918791d9c6e 100644 --- a/src/btree/bt_huffman.c +++ b/src/btree/bt_huffman.c @@ -157,7 +157,8 @@ __huffman_confchk_file(WT_SESSION_IMPL *session, /* Check the file exists. */ WT_RET(__wt_strndup(session, v->str + len, v->len - len, &fname)); - WT_ERR(__wt_fopen(session, fname, WT_OPEN_FIXED, WT_STREAM_READ, &fs)); + WT_ERR(__wt_fopen( + session, fname, WT_FS_OPEN_FIXED, WT_STREAM_READ, &fs)); /* Optionally return the file handle. */ if (fsp == NULL) |