diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2015-09-29 13:51:43 -0400 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2015-09-29 13:51:43 -0400 |
commit | 0db386b0aeb4a8d3fdc0b669bcdfdaebd9f09733 (patch) | |
tree | ba869f9dec23dffdc9e3355ee46bf5fc8ad3812b /src/support | |
parent | cce60f8be381d6d881fd95b97303bcc429b93087 (diff) | |
download | mongo-0db386b0aeb4a8d3fdc0b669bcdfdaebd9f09733.tar.gz |
WT-2151 Add zero-fill stat. Check correct flags field.
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/stat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/support/stat.c b/src/support/stat.c index 4e7f54937f4..9e817fad512 100644 --- a/src/support/stat.c +++ b/src/support/stat.c @@ -595,6 +595,7 @@ static const char * const __stats_connection_desc[] = { "log: log sync_dir operations", "log: log server thread advances write LSN", "log: log write operations", + "log: log files manually zero-filled", "LSM: sleep for LSM checkpoint throttle", "LSM: sleep for LSM merge throttle", "LSM: rows merged in an LSM tree", @@ -760,6 +761,7 @@ __wt_stat_connection_clear_single(WT_CONNECTION_STATS *stats) stats->log_slot_unbuffered = 0; stats->log_bytes_payload = 0; stats->log_bytes_written = 0; + stats->log_zero_fills = 0; stats->log_flush = 0; stats->log_compress_writes = 0; stats->log_compress_write_fails = 0; @@ -944,6 +946,7 @@ __wt_stat_connection_aggregate( to->log_slot_unbuffered += WT_STAT_READ(from, log_slot_unbuffered); to->log_bytes_payload += WT_STAT_READ(from, log_bytes_payload); to->log_bytes_written += WT_STAT_READ(from, log_bytes_written); + to->log_zero_fills += WT_STAT_READ(from, log_zero_fills); to->log_flush += WT_STAT_READ(from, log_flush); to->log_compress_writes += WT_STAT_READ(from, log_compress_writes); to->log_compress_write_fails += |