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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/txn/txn_recover.c b/src/txn/txn_recover.c
index 0eadcbf3b01..240d0a5ffd3 100644
--- a/src/txn/txn_recover.c
+++ b/src/txn/txn_recover.c
@@ -65,7 +65,7 @@ __recovery_cursor(WT_SESSION_IMPL *session, WT_RECOVERY *r,
"No file found with ID %u (max %u)",
id, r->nfiles));
r->missing = 1;
- } else if (WT_LOG_CMP(lsnp, &r->files[id].ckpt_lsn) >= 0) {
+ } else if (__wt_log_cmp(lsnp, &r->files[id].ckpt_lsn) >= 0) {
/*
* We're going to apply the operation. Get the cursor, opening
* one if none is cached.
@@ -144,10 +144,10 @@ __txn_op_apply(
GET_RECOVERY_CURSOR(session, r, lsnp, fileid, &cursor);
/* Set up the cursors. */
- if (start_recno == 0) {
+ if (start_recno == WT_RECNO_OOB) {
start = NULL;
stop = cursor;
- } else if (stop_recno == 0) {
+ } else if (stop_recno == WT_RECNO_OOB) {
start = cursor;
stop = NULL;
} else {
@@ -522,7 +522,7 @@ __wt_txn_recover(WT_SESSION_IMPL *session)
*/
WT_ERR(session->iface.checkpoint(&session->iface, "force=1"));
-done:
+done: FLD_SET(conn->log_flags, WT_CONN_LOG_RECOVER_DONE);
err: WT_TRET(__recovery_free(&r));
__wt_free(session, config);
WT_TRET(session->iface.close(&session->iface, NULL));