summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-07-28 12:04:41 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-07-28 12:04:41 -0400
commitfcf8af4b0c2fceb80ddc2803fb1a352a20fcde72 (patch)
tree53385ebe799ef7404647f17f2c37c80ef08f2222
parent04940511f1dd70f8b2377c9e8f2fe69774424dc8 (diff)
downloadmongo-fcf8af4b0c2fceb80ddc2803fb1a352a20fcde72.tar.gz
Force a full database checkpoint at the end of recovery. #1115
-rw-r--r--src/txn/txn_recover.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/txn/txn_recover.c b/src/txn/txn_recover.c
index 1f1843fa811..8e544942fe9 100644
--- a/src/txn/txn_recover.c
+++ b/src/txn/txn_recover.c
@@ -406,7 +406,7 @@ __wt_txn_recover(WT_SESSION_IMPL *default_session)
WT_DECL_RET;
WT_RECOVERY r;
WT_SESSION_IMPL *session;
- const char *cfg[3], *config;
+ const char *config;
int was_backup;
conn = S2C(default_session);
@@ -463,18 +463,13 @@ __wt_txn_recover(WT_SESSION_IMPL *default_session)
conn->next_file_id = r.max_fileid;
-err: if (ret == 0) {
+err: if (ret == 0)
/*
* If recovery ran successfully forcibly log a checkpoint
* so that the next open is fast and keep the metadata
* up to date with the checkpoint LSN and archiving.
*/
- cfg[0] = WT_CONFIG_BASE(session, session_checkpoint);
- cfg[1] = "force=1";
- cfg[2] = NULL;
- WT_WITH_BTREE(session, session->metafile,
- ret = __wt_checkpoint(session, cfg));
- }
+ session->iface.checkpoint(session, "force=1");
WT_TRET(__recovery_free(&r));
__wt_free(session, config);
WT_TRET(session->iface.close(&session->iface, NULL));