diff options
Diffstat (limited to 'src/mongo/db/repl/tenant_all_database_cloner.h')
-rw-r--r-- | src/mongo/db/repl/tenant_all_database_cloner.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/tenant_all_database_cloner.h b/src/mongo/db/repl/tenant_all_database_cloner.h index 86729055fd0..627f1507f00 100644 --- a/src/mongo/db/repl/tenant_all_database_cloner.h +++ b/src/mongo/db/repl/tenant_all_database_cloner.h @@ -46,6 +46,10 @@ public: size_t databasesCloned{0}; size_t databasesClonedBeforeFailover{0}; std::vector<TenantDatabaseCloner::Stats> databaseStats; + Date_t start; + + long long approxTotalDataSize{0}; + long long approxTotalBytesCopied{0}; std::string toString() const; BSONObj toBSON() const; @@ -98,6 +102,11 @@ private: AfterStageBehavior listExistingDatabasesStage(); /** + * The preStage sets the start time in _stats. + */ + void preStage() final; + + /** * * The postStage creates and runs the individual TenantDatabaseCloners on each database found on * the sync source. |