diff options
author | Etienne Petrel <etienne.petrel@mongodb.com> | 2022-08-18 09:24:08 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-18 10:27:12 +0000 |
commit | b36022abba0f53a2a37e207a4b970bb6d27c0585 (patch) | |
tree | f7654fb244604f7c7e27a6d5059efe4611489164 /src/third_party/wiredtiger/src/session | |
parent | e7d0dd542e1e31098a132989e7ff3c064e435ec0 (diff) | |
download | mongo-b36022abba0f53a2a37e207a4b970bb6d27c0585.tar.gz |
Import wiredtiger: 3112dccffa27bb8152bbc8ed22f63a0361cf28d7 from branch mongodb-master
ref: 7ece8460dc..3112dccffa
for: 6.1.0-rc0
WT-8848 Add session statistics that counts a transaction's dirty bytes. (#8205)
Diffstat (limited to 'src/third_party/wiredtiger/src/session')
-rw-r--r-- | src/third_party/wiredtiger/src/session/session_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/session/session_api.c b/src/third_party/wiredtiger/src/session/session_api.c index 0f96142cbb5..e313a897213 100644 --- a/src/third_party/wiredtiger/src/session/session_api.c +++ b/src/third_party/wiredtiger/src/session/session_api.c @@ -1651,6 +1651,7 @@ __session_begin_transaction(WT_SESSION *wt_session, const char *config) session = (WT_SESSION_IMPL *)wt_session; SESSION_API_CALL_PREPARE_NOT_ALLOWED(session, begin_transaction, config, cfg); WT_STAT_CONN_INCR(session, txn_begin); + WT_STAT_SESSION_SET(session, txn_bytes_dirty, 0); WT_ERR(__wt_txn_context_check(session, false)); |