diff options
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.h b/src/mongo/db/repl/replication_coordinator.h index ef796d6877c..42b5e7503c8 100644 --- a/src/mongo/db/repl/replication_coordinator.h +++ b/src/mongo/db/repl/replication_coordinator.h @@ -966,6 +966,15 @@ public: boost::optional<Date_t> deadline) const = 0; /** + * The futurized version of `awaitIsMasterResponse()`: + * * The future is ready for all cases that `awaitIsMasterResponse()` returns immediately. + * * For cases that `awaitIsMasterResponse()` blocks, calling `get()` on the future is blocking. + */ + virtual SharedSemiFuture<std::shared_ptr<const IsMasterResponse>> getIsMasterResponseFuture( + const SplitHorizon::Parameters& horizonParams, + boost::optional<TopologyVersion> clientTopologyVersion) const = 0; + + /** * Returns the OpTime that consists of the timestamp of the latest oplog entry and the current * term. * This function throws if: |