diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2017-06-24 03:01:13 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2017-06-24 03:01:13 +1000 |
commit | cf713d9b8cf0436f08facc8171ffb407d380ea85 (patch) | |
tree | 86df947be6762f82e30f5fe411024039d8b339dd /src/third_party/wiredtiger/src/meta/meta_turtle.c | |
parent | a02c5e1cf53e83de05d3c98ed38673d91a350ce0 (diff) | |
download | mongo-cf713d9b8cf0436f08facc8171ffb407d380ea85.tar.gz |
Import wiredtiger: 2b048c9ad2dfde7ad9c2a1329bc082dfc882aec7 from branch mongodb-3.6
ref: 47e8c3d1d2..2b048c9ad2
for: 3.5.10
SERVER-29439 WiredTiger turtle file "MoveFileExW: Access is denied." error.
WT-3251 Remove interim buffer used to split pages during reconciliation
WT-3367 Switch OSX builders to 10.12
WT-3370 Heap use after free in txn recover code
WT-3371 Make Windows/MSVC build warnings fatal.
WT-3379 Avoid a performance regression on secondaries
Diffstat (limited to 'src/third_party/wiredtiger/src/meta/meta_turtle.c')
-rw-r--r-- | src/third_party/wiredtiger/src/meta/meta_turtle.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/meta/meta_turtle.c b/src/third_party/wiredtiger/src/meta/meta_turtle.c index 7a99df6b83b..362a3aa2bbe 100644 --- a/src/third_party/wiredtiger/src/meta/meta_turtle.c +++ b/src/third_party/wiredtiger/src/meta/meta_turtle.c @@ -246,6 +246,9 @@ __wt_turtle_read(WT_SESSION_IMPL *session, const char *key, char **valuep) *valuep = NULL; + /* Require single-threading. */ + WT_ASSERT(session, F_ISSET(session, WT_SESSION_LOCKED_TURTLE)); + /* * Open the turtle file; there's one case where we won't find the turtle * file, yet still succeed. We create the metadata file before creating @@ -302,6 +305,9 @@ __wt_turtle_update(WT_SESSION_IMPL *session, const char *key, const char *value) fs = NULL; + /* Require single-threading. */ + WT_ASSERT(session, F_ISSET(session, WT_SESSION_LOCKED_TURTLE)); + /* * Create the turtle setup file: we currently re-write it from scratch * every time. |