summaryrefslogtreecommitdiff
path: root/src/conn/conn_open.c
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-04-21 15:45:30 -0400
committerSusan LoVerso <sue@wiredtiger.com>2015-04-21 15:45:30 -0400
commit4322191125284717af1a0c6734b6ea123ca6c50d (patch)
tree3fe37e30a33c3370bc36182096b61404e9a2d9be /src/conn/conn_open.c
parent83d9e49d45de301b42429c94284a6db82877d906 (diff)
downloadmongo-4322191125284717af1a0c6734b6ea123ca6c50d.tar.gz
Run recovery earlier. WT-1897
Diffstat (limited to 'src/conn/conn_open.c')
-rw-r--r--src/conn/conn_open.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/conn/conn_open.c b/src/conn/conn_open.c
index e0e59dea8ba..bf363e81215 100644
--- a/src/conn/conn_open.c
+++ b/src/conn/conn_open.c
@@ -228,25 +228,24 @@ __wt_connection_workers(WT_SESSION_IMPL *session, const char *cfg[])
WT_RET(__wt_evict_create(session));
/*
- * Start the handle sweep thread.
- */
- WT_RET(__wt_sweep_create(session));
-
- /*
* Start the optional statistics thread. Start statistics first so that
* other optional threads can know if statistics are enabled or not.
*/
WT_RET(__wt_statlog_create(session, cfg));
-
- /* Start the optional async threads. */
- WT_RET(__wt_async_create(session, cfg));
-
WT_RET(__wt_logmgr_create(session, cfg));
/* Run recovery. */
WT_RET(__wt_txn_recover(session));
/*
+ * Start the handle sweep thread.
+ */
+ WT_RET(__wt_sweep_create(session));
+
+ /* Start the optional async threads. */
+ WT_RET(__wt_async_create(session, cfg));
+
+ /*
* Start the optional logging/archive thread.
* NOTE: The log manager must be started before checkpoints so that the
* checkpoint server knows if logging is enabled.