summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/recovery_unit.h
diff options
context:
space:
mode:
authorYu Jin Kang Park <yujin.kang@mongodb.com>2022-11-21 09:09:34 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-21 10:10:01 +0000
commit007aef8fa15b3c54019708ddaa36098d61462e06 (patch)
tree520398f096ca2ddbb91c073c90591c76e57a3845 /src/mongo/db/storage/recovery_unit.h
parentab70b1fc976f38b5734afeeece0811eb05cf54aa (diff)
downloadmongo-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.h5
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);
}