diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-25 19:08:05 +1000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-25 19:08:05 +1000 |
commit | 6a35095060870d6e549a7beb3194f6665eb2f6b6 (patch) | |
tree | 05ac9b9322c59f244a638523c6f61731438a8705 /src/config | |
parent | c8f08c91bb01c8d29610fd89c031c3fa3ee4aca1 (diff) | |
download | mongo-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/config')
-rw-r--r-- | src/config/config_def.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/config/config_def.c b/src/config/config_def.c index 7baacb0bd8f..ea1cf34c79a 100644 --- a/src/config/config_def.c +++ b/src/config/config_def.c @@ -58,6 +58,7 @@ static const WT_CONFIG_CHECK confchk_shared_cache_subconfigs[] = { }; static const WT_CONFIG_CHECK confchk_statistics_log_subconfigs[] = { + { "on_close", "boolean", NULL, NULL }, { "path", "string", NULL, NULL }, { "sources", "list", NULL, NULL }, { "timestamp", "string", NULL, NULL }, @@ -369,8 +370,8 @@ static const WT_CONFIG_ENTRY config_entries[] = { "checkpoint=(name=\"WiredTigerCheckpoint\",wait=0),error_prefix=," "eviction_dirty_target=80,eviction_target=80,eviction_trigger=95," "eviction_workers=0,shared_cache=(chunk=10MB,name=,reserve=0," - "size=500MB),statistics=none," - "statistics_log=(path=\"WiredTigerStat.%d.%H\",sources=," + "size=500MB),statistics=none,statistics_log=(on_close=0," + "path=\"WiredTigerStat.%d.%H\",sources=," "timestamp=\"%b %d %H:%M:%S\",wait=0),verbose=", confchk_connection_reconfigure }, @@ -482,9 +483,10 @@ static const WT_CONFIG_ENTRY config_entries[] = { "log=(archive=,enabled=0,file_max=100MB,path=\"\"),lsm_merge=," "mmap=,multiprocess=0,session_max=100,shared_cache=(chunk=10MB," "name=,reserve=0,size=500MB),statistics=none," - "statistics_log=(path=\"WiredTigerStat.%d.%H\",sources=," - "timestamp=\"%b %d %H:%M:%S\",wait=0),transaction_sync=(enabled=0" - ",method=fsync),use_environment_priv=0,verbose=", + "statistics_log=(on_close=0,path=\"WiredTigerStat.%d.%H\"," + "sources=,timestamp=\"%b %d %H:%M:%S\",wait=0)," + "transaction_sync=(enabled=0,method=fsync),use_environment_priv=0" + ",verbose=", confchk_wiredtiger_open }, { NULL, NULL, NULL } |