summaryrefslogtreecommitdiff
path: root/src/txn/txn_recover.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/txn/txn_recover.c')
-rw-r--r--src/txn/txn_recover.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/txn/txn_recover.c b/src/txn/txn_recover.c
index f6cd384417f..8c25c1685cf 100644
--- a/src/txn/txn_recover.c
+++ b/src/txn/txn_recover.c
@@ -463,8 +463,11 @@ __wt_txn_recover(WT_SESSION_IMPL *session)
* there.
*/
r.ckpt_lsn = metafile->ckpt_lsn;
- WT_ERR(__wt_log_scan(session,
- &metafile->ckpt_lsn, 0, __txn_log_recover, &r));
+ ret = __wt_log_scan(session,
+ &metafile->ckpt_lsn, 0, __txn_log_recover, &r);
+ if (ret == ENOENT)
+ ret = 0;
+ WT_ERR(ret);
}
}
@@ -502,9 +505,13 @@ __wt_txn_recover(WT_SESSION_IMPL *session)
WT_ERR(__wt_log_scan(session, NULL,
WT_LOGSCAN_FIRST | WT_LOGSCAN_RECOVER,
__txn_log_recover, &r));
- else
- WT_ERR(__wt_log_scan(session, &r.ckpt_lsn,
- WT_LOGSCAN_RECOVER, __txn_log_recover, &r));
+ else {
+ ret = __wt_log_scan(session, &r.ckpt_lsn,
+ WT_LOGSCAN_RECOVER, __txn_log_recover, &r);
+ if (ret == ENOENT)
+ ret = 0;
+ WT_ERR(ret);
+ }
conn->next_file_id = r.max_fileid;