summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/cursor/cur_backup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/cursor/cur_backup.c')
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_backup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/cursor/cur_backup.c b/src/third_party/wiredtiger/src/cursor/cur_backup.c
index 43c6436b993..ee1bf714570 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_backup.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_backup.c
@@ -475,6 +475,9 @@ __backup_config(WT_SESSION_IMPL *session, WT_CURSOR_BACKUP *cb, const char *cfg[
incremental_config = log_config = false;
is_dup = othercb != NULL;
+ WT_ASSERT_SPINLOCK_OWNED(session, &conn->checkpoint_lock);
+ WT_ASSERT_SPINLOCK_OWNED(session, &conn->schema_lock);
+
/*
* Per-file offset incremental hot backup configurations take a starting checkpoint and optional
* maximum transfer size, and the subsequent duplicate cursors take a file object.
@@ -680,6 +683,9 @@ __backup_start(
dest = NULL;
is_dup = othercb != NULL;
+ WT_ASSERT_SPINLOCK_OWNED(session, &conn->checkpoint_lock);
+ WT_ASSERT_SPINLOCK_OWNED(session, &conn->schema_lock);
+
cb->next = 0;
cb->list = NULL;
cb->list_next = 0;