From f15de654db88a65bfa2deb3d22945ae1085dca45 Mon Sep 17 00:00:00 2001 From: Jason Chan Date: Wed, 29 Jan 2020 02:57:42 +0000 Subject: SERVER-45045 Increase topologyVersion and respond to waiting isMasters on FCV upgrade/downgrade --- src/mongo/db/repl/replication_coordinator.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mongo/db/repl/replication_coordinator.h') 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 @@ -946,6 +946,12 @@ public: const size_t numOpsKilled, 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 -- cgit v1.2.1