diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/schema/schema_truncate.c')
-rw-r--r-- | src/third_party/wiredtiger/src/schema/schema_truncate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/schema/schema_truncate.c b/src/third_party/wiredtiger/src/schema/schema_truncate.c index 3393a9834e0..7e7d5f50bab 100644 --- a/src/third_party/wiredtiger/src/schema/schema_truncate.c +++ b/src/third_party/wiredtiger/src/schema/schema_truncate.c @@ -100,6 +100,9 @@ __wt_schema_truncate(WT_SESSION_IMPL *session, const char *uri, const char *cfg[ WT_DECL_RET; const char *tablename; + WT_ASSERT_SPINLOCK_OWNED(session, &S2C(session)->checkpoint_lock); + WT_ASSERT_SPINLOCK_OWNED(session, &S2C(session)->schema_lock); + tablename = uri; if (WT_PREFIX_MATCH(uri, "file:")) |