summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/heartbeat_response_action.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2017-05-15 14:33:22 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2017-05-15 15:26:27 -0400
commitc88c4809c2440d286ed0fc29e1e8d684f015e563 (patch)
tree71962294640d0ddecacda316e8e1eda2323c9333 /src/mongo/db/repl/heartbeat_response_action.cpp
parentb69aed9d10ef66de42880fd379b0a593419b6e47 (diff)
downloadmongo-c88c4809c2440d286ed0fc29e1e8d684f015e563.tar.gz
SERVER-26990 Unify tracking of secondary state between replication and topology coordinators
This fixes a bug in the 6adc71f6cf069803f9c1288aef88ffe0d21c6ffe which caused crashes when a sync source change was requested of a node not in the configuration. It also fixes a dependency problem affecting the shared library build.
Diffstat (limited to 'src/mongo/db/repl/heartbeat_response_action.cpp')
-rw-r--r--src/mongo/db/repl/heartbeat_response_action.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/heartbeat_response_action.cpp b/src/mongo/db/repl/heartbeat_response_action.cpp
index 97bfbd0c29a..7e787d42c96 100644
--- a/src/mongo/db/repl/heartbeat_response_action.cpp
+++ b/src/mongo/db/repl/heartbeat_response_action.cpp
@@ -75,5 +75,9 @@ void HeartbeatResponseAction::setNextHeartbeatStartDate(Date_t when) {
_nextHeartbeatStartDate = when;
}
+void HeartbeatResponseAction::setAdvancedOpTime(bool advanced) {
+ _advancedOpTime = advanced;
+}
+
} // namespace repl
} // namespace mongo