summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c
diff options
context:
space:
mode:
authorAndrew Morton <andrew.morton@mongodb.com>2023-05-16 22:21:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 00:50:01 +0000
commit376eae9eefe9f752d8d9b5189528f1353c019e54 (patch)
tree8780daf7a9ebd0ed2e8c1b25bf81571b3bb89911 /src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c
parente94168acd89dba4faef5e43f970633a781e8cba2 (diff)
downloadmongo-376eae9eefe9f752d8d9b5189528f1353c019e54.tar.gz
Import wiredtiger: 04dcc362042b8cc35fdd8de8343be3a15d4fa47c from branch mongodb-master
ref: d310d6330e..04dcc36204 for: 7.1.0-rc0 WT-10898 Add assertions for owning a spinlock
Diffstat (limited to 'src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c')
-rw-r--r--src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c b/src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c
index bc3e55f7580..60d9556ab40 100644
--- a/src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c
+++ b/src/third_party/wiredtiger/src/rollback_to_stable/rts_api.c
@@ -44,6 +44,9 @@ __rollback_to_stable_int(WT_SESSION_IMPL *session, bool no_ckpt)
txn_global = &conn->txn_global;
dryrun = conn->rts->dryrun;
+ WT_ASSERT_SPINLOCK_OWNED(session, &conn->checkpoint_lock);
+ WT_ASSERT_SPINLOCK_OWNED(session, &conn->schema_lock);
+
/*
* Rollback to stable should ignore tombstones in the history store since it needs to scan the
* entire table sequentially.