summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_posix
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2019-03-08 08:19:53 +1100
committerLuke Chen <luke.chen@mongodb.com>2019-03-08 08:19:53 +1100
commit5a7ccd5f073341f5f98e0ced39a80416869c181b (patch)
treee4da15db6037ad02ebc7e69e292afe81fdcff53e /src/third_party/wiredtiger/src/os_posix
parentf386c49be72744d88fbb0950c54d6621a9d242b8 (diff)
downloadmongo-5a7ccd5f073341f5f98e0ced39a80416869c181b.tar.gz
Import wiredtiger: 82c3f83acae289e0ada5ab4e7fe549e47af1078e from branch mongodb-4.2
ref: afdead1093..82c3f83aca for: 4.1.9 WT-4526 Allow durable updates to be evicted to the lookaside file WT-4571 Explore performance improvement in __wt_txn_id_alloc WT-4602 Clang Tidy and Clang Scan fixes WT-4607 Allow prepared transaction to commit behind oldest timestamp WT-4619 Coverity 111398: leaked memory
Diffstat (limited to 'src/third_party/wiredtiger/src/os_posix')
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/os_posix/os_fs.c b/src/third_party/wiredtiger/src/os_posix/os_fs.c
index 438af2eb58d..7a5c4a07e58 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_fs.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_fs.c
@@ -140,7 +140,7 @@ __posix_directory_sync(WT_SESSION_IMPL *session, const char *path)
fd = 0; /* -Wconditional-uninitialized */
WT_SYSCALL_RETRY((
- (fd = open(dir, O_RDONLY, 0444)) == -1 ? -1 : 0), ret);
+ (fd = open(dir, O_RDONLY | O_CLOEXEC, 0444)) == -1 ? -1 : 0), ret);
if (ret != 0)
WT_ERR_MSG(session, ret, "%s: directory-sync: open", dir);