diff options
author | Jennifer Peshansky <jennifer.peshansky@mongodb.com> | 2022-11-03 16:13:20 +0000 |
---|---|---|
committer | Jennifer Peshansky <jennifer.peshansky@mongodb.com> | 2022-11-03 16:13:20 +0000 |
commit | e74d2910bbe76790ad131d53fee277829cd95982 (patch) | |
tree | cabe148764529c9623652374fbc36323a550cd44 /src/mongo/db/storage/recovery_unit.h | |
parent | 280145e9940729480bb8a35453d4056afac87641 (diff) | |
parent | ba467f46cc1bc49965e1d72b541eff0cf1d7b22e (diff) | |
download | mongo-e74d2910bbe76790ad131d53fee277829cd95982.tar.gz |
Merge branch 'master' into jenniferpeshansky/SERVER-70854jenniferpeshansky/SERVER-70854
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. */ |