summaryrefslogtreecommitdiff
path: root/src/conn/conn_open.c
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2014-06-25 19:08:05 +1000
committerAlex Gorrod <alexg@wiredtiger.com>2014-06-25 19:08:05 +1000
commit6a35095060870d6e549a7beb3194f6665eb2f6b6 (patch)
tree05ac9b9322c59f244a638523c6f61731438a8705 /src/conn/conn_open.c
parentc8f08c91bb01c8d29610fd89c031c3fa3ee4aca1 (diff)
downloadmongo-6a35095060870d6e549a7beb3194f6665eb2f6b6.tar.gz
Add new statistics_log=(on_close=bool) option.
That logs a set of statistics on WT_CONNECTION::close.
Diffstat (limited to 'src/conn/conn_open.c')
-rw-r--r--src/conn/conn_open.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conn/conn_open.c b/src/conn/conn_open.c
index 762741b8497..4f9180dac33 100644
--- a/src/conn/conn_open.c
+++ b/src/conn/conn_open.c
@@ -85,6 +85,9 @@ __wt_connection_close(WT_CONNECTION_IMPL *conn)
WT_TRET(__wt_statlog_destroy(conn));
WT_TRET(__wt_sweep_destroy(conn));
+ /* Log a set of statistics if configured. */
+ WT_TRET(__wt_statlog_log_one(session));
+
/* Clean up open LSM handles. */
WT_TRET(__wt_lsm_tree_close_all(session));