summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/topology_coordinator_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/topology_coordinator_impl.h')
-rw-r--r--src/mongo/db/repl/topology_coordinator_impl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/topology_coordinator_impl.h b/src/mongo/db/repl/topology_coordinator_impl.h
index a6c1504829f..4361f27f3bc 100644
--- a/src/mongo/db/repl/topology_coordinator_impl.h
+++ b/src/mongo/db/repl/topology_coordinator_impl.h
@@ -308,6 +308,10 @@ private:
// Sees if a majority number of votes are held by members who are currently "up"
bool _aMajoritySeemsToBeUp() const;
+ // Returns true if the node can see a healthy primary of equal or greater priority to the
+ // candidate.
+ bool _canSeeHealthyPrimaryOfEqualOrGreaterPriority(const int candidateIndex) const;
+
// Is otherOpTime close enough (within 10 seconds) to the latest known optime to qualify
// for an election
bool _isOpTimeCloseEnoughToLatestToElect(const OpTime& otherOpTime,