diff options
author | Luke Chen <luke.chen@mongodb.com> | 2022-02-15 08:33:26 +1100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-14 22:27:59 +0000 |
commit | c32a638ad73c00b747a5107705e2e3509b6411d0 (patch) | |
tree | e24ec0afeb1583ed20c250146f5546eb2d34d1d2 /src | |
parent | 85b78395ff7a5e559162891ac1c18f33ba303474 (diff) | |
download | mongo-c32a638ad73c00b747a5107705e2e3509b6411d0.tar.gz |
Import wiredtiger: 2aec3a457468b4ef3e2945c7d6c6291c7fe0cd5d from branch mongodb-master
ref: fc3f4b5a75..2aec3a4574
for: 5.3.0
WT-8778 Update the statistics cache_hs_insert with a value instead of increments
Diffstat (limited to 'src')
-rw-r--r-- | src/third_party/wiredtiger/import.data | 2 | ||||
-rw-r--r-- | src/third_party/wiredtiger/src/history/hs_rec.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/import.data b/src/third_party/wiredtiger/import.data index a40c814a496..f65fce377ad 100644 --- a/src/third_party/wiredtiger/import.data +++ b/src/third_party/wiredtiger/import.data @@ -2,5 +2,5 @@ "vendor": "wiredtiger", "github": "wiredtiger/wiredtiger.git", "branch": "mongodb-master", - "commit": "fc3f4b5a754a8abf30e920afb0d2769ff88b04c0" + "commit": "2aec3a457468b4ef3e2945c7d6c6291c7fe0cd5d" } diff --git a/src/third_party/wiredtiger/src/history/hs_rec.c b/src/third_party/wiredtiger/src/history/hs_rec.c index 0e7e6dd2e2e..8b78e203243 100644 --- a/src/third_party/wiredtiger/src/history/hs_rec.c +++ b/src/third_party/wiredtiger/src/history/hs_rec.c @@ -241,7 +241,6 @@ __hs_insert_record(WT_SESSION_IMPL *session, WT_CURSOR *cursor, WT_BTREE *btree, cursor->set_value( cursor, tw, tw->durable_stop_ts, tw->durable_start_ts, (uint64_t)type, hs_value); WT_ERR(cursor->insert(cursor)); - WT_STAT_CONN_DATA_INCR(session, cache_hs_insert); err: if (!hs_read_all_flag) @@ -774,6 +773,8 @@ err: WT_TRET(hs_cursor->close(hs_cursor)); + /* Update the statistics. */ + WT_STAT_CONN_DATA_INCRV(session, cache_hs_insert, insert_cnt); WT_STAT_CONN_DATA_INCRV(session, cache_hs_insert_full_update, cache_hs_insert_full_update); WT_STAT_CONN_DATA_INCRV( session, cache_hs_insert_reverse_modify, cache_hs_insert_reverse_modify); |