summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/conn/conn_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/conn/conn_open.c')
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_open.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_open.c b/src/third_party/wiredtiger/src/conn/conn_open.c
index f77f38ee01c..97ced7d5263 100644
--- a/src/third_party/wiredtiger/src/conn/conn_open.c
+++ b/src/third_party/wiredtiger/src/conn/conn_open.c
@@ -122,13 +122,14 @@ __wt_connection_close(WT_CONNECTION_IMPL *conn)
/*
* Now that all data handles are closed, tell logging that a checkpoint
* has completed then shut down the log manager (only after closing
- * data handles).
+ * data handles). The call to destroy the log manager is outside the
+ * conditional because we allocate the log path so that printlog can
+ * run without running logging or recovery.
*/
- if (FLD_ISSET(conn->log_flags, WT_CONN_LOG_ENABLED)) {
+ if (FLD_ISSET(conn->log_flags, WT_CONN_LOG_ENABLED))
WT_TRET(__wt_txn_checkpoint_log(
session, 1, WT_TXN_LOG_CKPT_STOP, NULL));
- WT_TRET(__wt_logmgr_destroy(session));
- }
+ WT_TRET(__wt_logmgr_destroy(session));
/* Free memory for collators, compressors, data sources. */
WT_TRET(__wt_conn_remove_collator(session));