diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/cursor/cur_backup.c')
-rw-r--r-- | src/third_party/wiredtiger/src/cursor/cur_backup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/third_party/wiredtiger/src/cursor/cur_backup.c b/src/third_party/wiredtiger/src/cursor/cur_backup.c index 05dc7e2ff9b..4011a62b0d5 100644 --- a/src/third_party/wiredtiger/src/cursor/cur_backup.c +++ b/src/third_party/wiredtiger/src/cursor/cur_backup.c @@ -319,7 +319,7 @@ __backup_add_id(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *cval) * We didn't find an entry. This should not happen. */ if (i == WT_BLKINCR_MAX) - WT_PANIC_RET(session, WT_NOTFOUND, "Could not find an incremental backup slot to use"); + WT_RET_PANIC(session, WT_NOTFOUND, "Could not find an incremental backup slot to use"); /* Use the slot. */ if (blk->id_str != NULL) @@ -610,7 +610,7 @@ __backup_start( * Single thread hot backups: we're holding the schema lock, so we know we'll serialize with * other attempts to start a hot backup. */ - if (conn->hot_backup && !is_dup) + if (conn->hot_backup_start != 0 && !is_dup) WT_RET_MSG(session, EINVAL, "there is already a backup cursor open"); if (F_ISSET(session, WT_SESSION_BACKUP_DUP) && is_dup) @@ -766,7 +766,7 @@ __backup_stop(WT_SESSION_IMPL *session, WT_CURSOR_BACKUP *cb) WT_TRET(__wt_backup_file_remove(session)); /* Checkpoint deletion and next hot backup can proceed. */ - WT_WITH_HOTBACKUP_WRITE_LOCK(session, conn->hot_backup = false); + WT_WITH_HOTBACKUP_WRITE_LOCK(session, conn->hot_backup_start = 0); F_CLR(session, WT_SESSION_BACKUP_CURSOR); return (ret); |