summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
diff options
context:
space:
mode:
authorSamyukta Lanka <samy.lanka@mongodb.com>2019-09-12 15:59:13 +0000
committerevergreen <evergreen@mongodb.com>2019-09-12 15:59:13 +0000
commit2236be92df7ddb27f0053923763fb7d2f1632fcf (patch)
tree1bfda1b3f4693c80e9cc998d3010e9c617f3676b /src/mongo/embedded
parent523d4a46f4cdc9cc928f85eed2c63bc898c8ca63 (diff)
downloadmongo-2236be92df7ddb27f0053923763fb7d2f1632fcf.tar.gz
SERVER-41501 Track the number of elections that require primary catchup in serverStatus
SERVER-41509 Track the number of attempted stepDowns in serverStatus SERVER-41502 Track the number of times primary catchup concludes for each reason in serverStatus SERVER-41510 Track the number of failed stepDowns in serverStatus SERVER-41503 Track the target opTime for catchup in replSetStatus on primaries SERVER-41507 Track the time the new term oplog entry was written in replSetStatus on primaries SERVER-41504 Track the number of ops during catchup in replSetStatus on primaries (cherry picked from commit dc4db514a1ee737db0553f9535033453502b3ac7) (cherry picked from commit 2ae4fd3e580c90ecfca524d02b9a484f671768f0) (cherry picked from commit 796214e8426b3036f4eb4bdcc4af9d218589778f) (cherry picked from commit 4e8fbd52ca8cda811dc53bb160f3ca5074355dab) (cherry picked from commit d14ee9513924f63572324debc7721ca2ef93c22f) (cherry picked from commit ee47f663b7473b0b56b401922a532e809c516a50) (cherry picked from commit 8494ca7d8a88aa3d5df96e89beafacd4caca3801)
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r--src/mongo/embedded/replication_coordinator_embedded.cpp6
-rw-r--r--src/mongo/embedded/replication_coordinator_embedded.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/embedded/replication_coordinator_embedded.cpp b/src/mongo/embedded/replication_coordinator_embedded.cpp
index ccdf18229aa..b11d0106d77 100644
--- a/src/mongo/embedded/replication_coordinator_embedded.cpp
+++ b/src/mongo/embedded/replication_coordinator_embedded.cpp
@@ -355,7 +355,11 @@ Status ReplicationCoordinatorEmbedded::processReplSetInitiate(OperationContext*,
UASSERT_NOT_IMPLEMENTED;
}
-Status ReplicationCoordinatorEmbedded::abortCatchupIfNeeded() {
+Status ReplicationCoordinatorEmbedded::abortCatchupIfNeeded(PrimaryCatchUpConclusionReason reason) {
+ UASSERT_NOT_IMPLEMENTED;
+}
+
+void ReplicationCoordinatorEmbedded::incrementNumCatchUpOpsIfCatchingUp(int numOps) {
UASSERT_NOT_IMPLEMENTED;
}
diff --git a/src/mongo/embedded/replication_coordinator_embedded.h b/src/mongo/embedded/replication_coordinator_embedded.h
index c68a7e8b7af..1246adf7e93 100644
--- a/src/mongo/embedded/replication_coordinator_embedded.h
+++ b/src/mongo/embedded/replication_coordinator_embedded.h
@@ -249,7 +249,9 @@ public:
Status stepUpIfEligible(bool skipDryRun) override;
- Status abortCatchupIfNeeded() override;
+ Status abortCatchupIfNeeded(PrimaryCatchUpConclusionReason reason) override;
+
+ void incrementNumCatchUpOpsIfCatchingUp(int numOps) override;
void signalDropPendingCollectionsRemovedFromStorage() final;