diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2022-10-28 17:43:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-31 22:33:55 +0000 |
commit | cc733015b5f72b51475460d24096f8a8c45d0647 (patch) | |
tree | 2805d9f8485b873fc30b621c58d79e84336903f9 /src/mongo/db/storage/recovery_unit.h | |
parent | 201497d405225041f1806d25dfed475f3ec3f7ae (diff) | |
download | mongo-cc733015b5f72b51475460d24096f8a8c45d0647.tar.gz |
SERVER-70830 Unit test `WiredTigerOperationStats`
Diffstat (limited to 'src/mongo/db/storage/recovery_unit.h')
-rw-r--r-- | src/mongo/db/storage/recovery_unit.h | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/mongo/db/storage/recovery_unit.h b/src/mongo/db/storage/recovery_unit.h index 20c49c637d3..9e173d632e7 100644 --- a/src/mongo/db/storage/recovery_unit.h +++ b/src/mongo/db/storage/recovery_unit.h @@ -37,6 +37,7 @@ #include "mongo/bson/timestamp.h" #include "mongo/db/repl/read_concern_level.h" #include "mongo/db/storage/snapshot.h" +#include "mongo/db/storage/storage_stats.h" #include "mongo/util/decorable.h" namespace mongo { @@ -76,37 +77,6 @@ enum class PrepareConflictBehavior { }; /** - * Storage statistics management class, with interfaces to provide the statistics in the BSON format - * and an operator to add the statistics values. - */ -class StorageStats { - StorageStats(const StorageStats&) = delete; - StorageStats& operator=(const StorageStats&) = delete; - -public: - StorageStats() = default; - - virtual ~StorageStats(){}; - - /** - * Provides the storage statistics in the form of a BSONObj. - */ - virtual BSONObj toBSON() = 0; - - /** - * Add the statistics values. - */ - virtual StorageStats& operator+=(const StorageStats&) = 0; - - /** - * Provides the ability to create an instance of this class outside of the storage integration - * layer. - */ - virtual std::shared_ptr<StorageStats> getCopy() = 0; -}; - - -/** * A RecoveryUnit is responsible for ensuring that data is persisted. * All on-disk information must be mutated through this interface. */ |