diff options
author | Medha Potluri <medha.potluri@mongodb.com> | 2019-08-06 11:04:20 -0400 |
---|---|---|
committer | Medha Potluri <medha.potluri@mongodb.com> | 2019-08-16 14:30:34 -0400 |
commit | 8494ca7d8a88aa3d5df96e89beafacd4caca3801 (patch) | |
tree | 819fc2ee7c4b6d0c2e3a7cc6a0d93d34ae9dd70c /src/mongo/db/repl/replication_coordinator.h | |
parent | d362c1c39ca79dd20e0aa6e9f93171fc5bd2cdec (diff) | |
download | mongo-8494ca7d8a88aa3d5df96e89beafacd4caca3801.tar.gz |
SERVER-41504 Track the number of ops during catchup in replSetStatus on primaries
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.h b/src/mongo/db/repl/replication_coordinator.h index 5eb8007d66c..2f8bd118552 100644 --- a/src/mongo/db/repl/replication_coordinator.h +++ b/src/mongo/db/repl/replication_coordinator.h @@ -879,6 +879,12 @@ public: virtual Status abortCatchupIfNeeded(PrimaryCatchUpConclusionReason reason) = 0; /** + * Increment the counter for the number of ops applied during catchup if the node is in catchup + * mode. + */ + virtual void incrementNumCatchUpOpsIfCatchingUp(int numOps) = 0; + + /** * Signals that drop pending collections have been removed from storage. */ virtual void signalDropPendingCollectionsRemovedFromStorage() = 0; |