From 815a170af4f9579e7f9130dae6265ad274805e39 Mon Sep 17 00:00:00 2001 From: matt dannenberg Date: Thu, 3 Sep 2015 04:57:40 -0400 Subject: SERVER-19836 implement priority logic for PV1 elections --- src/mongo/db/repl/heartbeat_response_action.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mongo/db/repl/heartbeat_response_action.cpp') diff --git a/src/mongo/db/repl/heartbeat_response_action.cpp b/src/mongo/db/repl/heartbeat_response_action.cpp index 385e250329d..97bfbd0c29a 100644 --- a/src/mongo/db/repl/heartbeat_response_action.cpp +++ b/src/mongo/db/repl/heartbeat_response_action.cpp @@ -43,6 +43,12 @@ HeartbeatResponseAction HeartbeatResponseAction::makeReconfigAction() { return result; } +HeartbeatResponseAction HeartbeatResponseAction::makePriorityTakeoverAction() { + HeartbeatResponseAction result; + result._action = PriorityTakeover; + return result; +} + HeartbeatResponseAction HeartbeatResponseAction::makeElectAction() { HeartbeatResponseAction result; result._action = StartElection; -- cgit v1.2.1