summaryrefslogtreecommitdiff
path: root/src/support/stat.c
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-09-24 10:54:50 -0400
committerSusan LoVerso <sue@wiredtiger.com>2015-09-24 10:54:50 -0400
commitad1e29ff57931c4b958e5e10e9927e3797d915c9 (patch)
tree0258a88d272f40b1f45a995cd1be321a3aadc4b0 /src/support/stat.c
parent806ef2a0371684277326aa58902ea593780f1968 (diff)
downloadmongo-ad1e29ff57931c4b958e5e10e9927e3797d915c9.tar.gz
WT-2088 Add a prealloc_missed stat. Fix review comments.
Diffstat (limited to 'src/support/stat.c')
-rw-r--r--src/support/stat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/support/stat.c b/src/support/stat.c
index b6b9dd71b3b..4e7f54937f4 100644
--- a/src/support/stat.c
+++ b/src/support/stat.c
@@ -577,6 +577,7 @@ static const char * const __stats_connection_desc[] = {
"log: maximum log file size",
"log: pre-allocated log files prepared",
"log: number of pre-allocated log files to create",
+ "log: pre-allocated log files not ready and missed",
"log: pre-allocated log files used",
"log: log release advances write LSN",
"log: records processed by log scan",
@@ -773,6 +774,7 @@ __wt_stat_connection_clear_single(WT_CONNECTION_STATS *stats)
stats->log_slot_consolidated = 0;
/* not clearing log_max_filesize */
/* not clearing log_prealloc_max */
+ stats->log_prealloc_missed = 0;
stats->log_prealloc_files = 0;
stats->log_prealloc_used = 0;
stats->log_scan_records = 0;
@@ -959,6 +961,7 @@ __wt_stat_connection_aggregate(
WT_STAT_READ(from, log_slot_consolidated);
to->log_max_filesize += WT_STAT_READ(from, log_max_filesize);
to->log_prealloc_max += WT_STAT_READ(from, log_prealloc_max);
+ to->log_prealloc_missed += WT_STAT_READ(from, log_prealloc_missed);
to->log_prealloc_files += WT_STAT_READ(from, log_prealloc_files);
to->log_prealloc_used += WT_STAT_READ(from, log_prealloc_used);
to->log_scan_records += WT_STAT_READ(from, log_scan_records);