summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/recovery_unit.h
diff options
context:
space:
mode:
authornehakhatri5 <neha.khatri@mongodb.com>2018-12-07 16:55:42 +1100
committerAlex Cameron <alex.cameron@10gen.com>2019-03-27 04:59:43 +0000
commit097c20d21c6e735f179bd14eb30d963d5f2a7a82 (patch)
treec6f2f85ea705a0858fb8c395859946739c6bc3f2 /src/mongo/db/storage/recovery_unit.h
parent79be33d4f24e8a38a42546b4f4e61885a8a3ce6d (diff)
downloadmongo-slow-ops-backport.tar.gz
SERVER-38239 Added getOperationStatistics() API to fetch storage stats from WiredTigerslow-ops-backport
(cherry picked from commit ba3894493a94ed3c18458f391ff181d57475f010)
Diffstat (limited to 'src/mongo/db/storage/recovery_unit.h')
-rw-r--r--src/mongo/db/storage/recovery_unit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/storage/recovery_unit.h b/src/mongo/db/storage/recovery_unit.h
index 331c68046be..1e2626c5951 100644
--- a/src/mongo/db/storage/recovery_unit.h
+++ b/src/mongo/db/storage/recovery_unit.h
@@ -214,6 +214,15 @@ public:
}
/**
+ * Fetches the storage level statistics.
+ */
+ virtual BSONObj getOperationStatistics() const {
+ return {};
+ }
+
+ /**
+ * The ReadSource indicates which exteral or provided timestamp to read from for future
+ * transactions.
* When no read timestamp is provided to the recovery unit, the ReadSource indicates which
* external timestamp source to read from.
*/