summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/support/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/support/stat.c')
-rw-r--r--src/third_party/wiredtiger/src/support/stat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/support/stat.c b/src/third_party/wiredtiger/src/support/stat.c
index 4a7b50d72e1..3a21171d781 100644
--- a/src/third_party/wiredtiger/src/support/stat.c
+++ b/src/third_party/wiredtiger/src/support/stat.c
@@ -1137,7 +1137,9 @@ static const char * const __stats_connection_desc[] = {
"transaction: transaction range of IDs currently pinned by named snapshots",
"transaction: transaction range of timestamps currently pinned",
"transaction: transaction range of timestamps pinned by a checkpoint",
+ "transaction: transaction range of timestamps pinned by the oldest active read timestamp",
"transaction: transaction range of timestamps pinned by the oldest timestamp",
+ "transaction: transaction read timestamp of the oldest active reader",
"transaction: transaction sync calls",
"transaction: transactions committed",
"transaction: transactions rolled back",
@@ -1568,7 +1570,9 @@ __wt_stat_connection_clear_single(WT_CONNECTION_STATS *stats)
/* not clearing txn_pinned_snapshot_range */
/* not clearing txn_pinned_timestamp */
/* not clearing txn_pinned_timestamp_checkpoint */
+ /* not clearing txn_pinned_timestamp_reader */
/* not clearing txn_pinned_timestamp_oldest */
+ /* not clearing txn_timestamp_oldest_active_read */
stats->txn_sync = 0;
stats->txn_commit = 0;
stats->txn_rollback = 0;
@@ -2167,8 +2171,12 @@ __wt_stat_connection_aggregate(
to->txn_pinned_timestamp += WT_STAT_READ(from, txn_pinned_timestamp);
to->txn_pinned_timestamp_checkpoint +=
WT_STAT_READ(from, txn_pinned_timestamp_checkpoint);
+ to->txn_pinned_timestamp_reader +=
+ WT_STAT_READ(from, txn_pinned_timestamp_reader);
to->txn_pinned_timestamp_oldest +=
WT_STAT_READ(from, txn_pinned_timestamp_oldest);
+ to->txn_timestamp_oldest_active_read +=
+ WT_STAT_READ(from, txn_timestamp_oldest_active_read);
to->txn_sync += WT_STAT_READ(from, txn_sync);
to->txn_commit += WT_STAT_READ(from, txn_commit);
to->txn_rollback += WT_STAT_READ(from, txn_rollback);