diff options
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.c | 3 |
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. |