diff options
author | Yu Jin Kang Park <yujin.kang@mongodb.com> | 2022-11-21 09:09:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-21 10:10:01 +0000 |
commit | 007aef8fa15b3c54019708ddaa36098d61462e06 (patch) | |
tree | 520398f096ca2ddbb91c073c90591c76e57a3845 /src/mongo/db/storage/recovery_unit.h | |
parent | ab70b1fc976f38b5734afeeece0811eb05cf54aa (diff) | |
download | mongo-007aef8fa15b3c54019708ddaa36098d61462e06.tar.gz |
SERVER-68739 Do not reset WT session stats when fetching op stats
Diffstat (limited to 'src/mongo/db/storage/recovery_unit.h')
-rw-r--r-- | src/mongo/db/storage/recovery_unit.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/storage/recovery_unit.h b/src/mongo/db/storage/recovery_unit.h index 2e191ee75b5..2c43a5c203b 100644 --- a/src/mongo/db/storage/recovery_unit.h +++ b/src/mongo/db/storage/recovery_unit.h @@ -426,9 +426,10 @@ public: virtual void allowUntimestampedWrite() {} /** - * Fetches the storage level statistics. + * Computes the storage level statistics accrued since the last call to this function, or + * since the recovery unit was instantiated. Should be called at the end of each operation. */ - virtual std::shared_ptr<StorageStats> getOperationStatistics() const { + virtual std::unique_ptr<StorageStats> computeOperationStatisticsSinceLastCall() { return (nullptr); } |