summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/lsm/lsm_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/lsm/lsm_stat.c')
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_stat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_stat.c b/src/third_party/wiredtiger/src/lsm/lsm_stat.c
index 80924f8d6b1..7527fea15e2 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_stat.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_stat.c
@@ -29,6 +29,8 @@ __curstat_lsm_init(WT_SESSION_IMPL *session, const char *uri, WT_CURSOR_STAT *cs
WT_CONFIG_BASE(session, WT_SESSION_open_cursor), "checkpoint=" WT_CHECKPOINT, NULL, NULL};
bool locked;
+ WT_ASSERT_SPINLOCK_OWNED(session, &S2C(session)->schema_lock);
+
locked = false;
WT_RET(__wt_lsm_tree_get(session, uri, false, &lsm_tree));
WT_ERR(__wt_scr_alloc(session, 0, &uribuf));