summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/meta/meta_turtle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/meta/meta_turtle.c')
-rw-r--r--src/third_party/wiredtiger/src/meta/meta_turtle.c2
1 files changed, 2 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 6fb19c3bbe4..4044c6a6a05 100644
--- a/src/third_party/wiredtiger/src/meta/meta_turtle.c
+++ b/src/third_party/wiredtiger/src/meta/meta_turtle.c
@@ -623,6 +623,7 @@ __wt_turtle_read(WT_SESSION_IMPL *session, const char *key, char **valuep)
/* Require single-threading. */
WT_ASSERT(session, FLD_ISSET(session->lock_flags, WT_SESSION_LOCKED_TURTLE));
+ WT_ASSERT_SPINLOCK_OWNED(session, &S2C(session)->turtle_lock);
/*
* Open the turtle file; there's one case where we won't find the turtle file, yet still
@@ -688,6 +689,7 @@ __wt_turtle_update(WT_SESSION_IMPL *session, const char *key, const char *value)
/* Require single-threading. */
WT_ASSERT(session, FLD_ISSET(session->lock_flags, WT_SESSION_LOCKED_TURTLE));
+ WT_ASSERT_SPINLOCK_OWNED(session, &conn->turtle_lock);
/*
* Create the turtle setup file: we currently re-write it from scratch every time.