summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator.h
diff options
context:
space:
mode:
authorJason Chan <jason.chan@mongodb.com>2020-01-29 02:57:42 +0000
committerevergreen <evergreen@mongodb.com>2020-01-29 02:57:42 +0000
commitf15de654db88a65bfa2deb3d22945ae1085dca45 (patch)
tree1853a34e755a5f32f8384b5435d961f3fa0263e7 /src/mongo/db/repl/replication_coordinator.h
parent3423ca586b88566857f3fcdfeca1c6fdee7a0911 (diff)
downloadmongo-f15de654db88a65bfa2deb3d22945ae1085dca45.tar.gz
SERVER-45045 Increase topologyVersion and respond to waiting isMasters on FCV upgrade/downgrade
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator.h6
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 eb9e79d3266..cd431951ca9 100644
--- a/src/mongo/db/repl/replication_coordinator.h
+++ b/src/mongo/db/repl/replication_coordinator.h
@@ -947,6 +947,12 @@ public:
const size_t numOpsRunning) const = 0;
/**
+ * Increment the server TopologyVersion and fulfill the promise of any currently waiting
+ * isMaster request.
+ */
+ virtual void incrementTopologyVersion(OperationContext* opCtx) = 0;
+
+ /**
* Constructs and returns an IsMasterResponse. Will block until the given deadline waiting for a
* significant topology change if the 'counter' field of 'clientTopologyVersion' is equal to the
* current TopologyVersion 'counter' from the TopologyCoordinator. Returns immediately if