diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2015-11-19 01:02:59 +0000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2015-11-19 01:02:59 +0000 |
commit | e45e07383d0ded0d046a7320fcbae55134845e8b (patch) | |
tree | 3c9195da720ae5d4e62d6d17f5232d704aa9ebf8 | |
parent | 76d4b2f41e816cd496d577c6909ef0ac7101bfbf (diff) | |
download | mongo-e45e07383d0ded0d046a7320fcbae55134845e8b.tar.gz |
WT-2222 Fixup snapshot statistics re: review comments.
-rw-r--r-- | dist/stat_data.py | 6 | ||||
-rw-r--r-- | src/support/stat.c | 4 | ||||
-rw-r--r-- | tools/wtstats/stat_data.py | 4 |
3 files changed, 4 insertions, 10 deletions
diff --git a/dist/stat_data.py b/dist/stat_data.py index 8185736ad2b..3a23071a3f2 100644 --- a/dist/stat_data.py +++ b/dist/stat_data.py @@ -320,10 +320,8 @@ connection_stats = [ TxnStat('txn_pinned_snapshot_range', 'transaction range of IDs currently pinned by named snapshots', 'no_clear,no_scale'), - TxnStat('txn_snapshots_created', - 'number of named snapshots created', 'no_clear,no_scale'), - TxnStat('txn_snapshots_dropped', - 'number of named snapshots dropped', 'no_clear,no_scale'), + TxnStat('txn_snapshots_created', 'number of named snapshots created'), + TxnStat('txn_snapshots_dropped', 'number of named snapshots dropped'), TxnStat('txn_rollback', 'transactions rolled back'), TxnStat('txn_sync', 'transaction sync calls'), diff --git a/src/support/stat.c b/src/support/stat.c index cee380eced6..4d7cd65fd18 100644 --- a/src/support/stat.c +++ b/src/support/stat.c @@ -836,8 +836,8 @@ __wt_stat_connection_clear_single(WT_CONNECTION_STATS *stats) stats->page_locked_blocked = 0; stats->page_read_blocked = 0; stats->page_sleep = 0; - /* not clearing txn_snapshots_created */ - /* not clearing txn_snapshots_dropped */ + stats->txn_snapshots_created = 0; + stats->txn_snapshots_dropped = 0; stats->txn_begin = 0; /* not clearing txn_checkpoint_running */ /* not clearing txn_checkpoint_generation */ diff --git a/tools/wtstats/stat_data.py b/tools/wtstats/stat_data.py index dcd112397af..7cee87e49ed 100644 --- a/tools/wtstats/stat_data.py +++ b/tools/wtstats/stat_data.py @@ -24,8 +24,6 @@ no_scale_per_second_list = [ 'reconciliation: split objects currently awaiting free', 'session: open cursor count', 'session: open session count', - 'transaction: number of named snapshots created', - 'transaction: number of named snapshots dropped', 'transaction: transaction checkpoint currently running', 'transaction: transaction checkpoint generation', 'transaction: transaction checkpoint max time (msecs)', @@ -90,8 +88,6 @@ no_clear_list = [ 'reconciliation: split objects currently awaiting free', 'session: open cursor count', 'session: open session count', - 'transaction: number of named snapshots created', - 'transaction: number of named snapshots dropped', 'transaction: transaction checkpoint currently running', 'transaction: transaction checkpoint generation', 'transaction: transaction checkpoint max time (msecs)', |