summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/sync_source_feedback.cpp
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2017-12-13 13:27:01 -0500
committerVesselina Ratcheva <vesselina.ratcheva@10gen.com>2017-12-13 13:29:59 -0500
commitfcbce71b912723aac77ab1ec4efec8e15114a86c (patch)
tree3d3db6f4d7f2d3958f5c1246631e8d28e4115321 /src/mongo/db/repl/sync_source_feedback.cpp
parent6796859387ba77a3556ed583a317681a288970e4 (diff)
downloadmongo-fcbce71b912723aac77ab1ec4efec8e15114a86c.tar.gz
SERVER-28895 Remove old form of replSetUpdatePosition command
Diffstat (limited to 'src/mongo/db/repl/sync_source_feedback.cpp')
-rw-r--r--src/mongo/db/repl/sync_source_feedback.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/repl/sync_source_feedback.cpp b/src/mongo/db/repl/sync_source_feedback.cpp
index 8fd1e66d6a5..4bd190ff14e 100644
--- a/src/mongo/db/repl/sync_source_feedback.cpp
+++ b/src/mongo/db/repl/sync_source_feedback.cpp
@@ -61,8 +61,7 @@ Milliseconds calculateKeepAliveInterval(const ReplSetConfig& rsConfig) {
*/
Reporter::PrepareReplSetUpdatePositionCommandFn makePrepareReplSetUpdatePositionCommandFn(
ReplicationCoordinator* replCoord, const HostAndPort& syncTarget, BackgroundSync* bgsync) {
- return [syncTarget, replCoord, bgsync](ReplicationCoordinator::ReplSetUpdatePositionCommandStyle
- commandStyle) -> StatusWith<BSONObj> {
+ return [syncTarget, replCoord, bgsync]() -> StatusWith<BSONObj> {
auto currentSyncTarget = bgsync->getSyncTarget();
if (currentSyncTarget != syncTarget) {
if (currentSyncTarget.empty()) {
@@ -84,7 +83,7 @@ Reporter::PrepareReplSetUpdatePositionCommandFn makePrepareReplSetUpdatePosition
"Currently primary - no one to send updates to");
}
- return replCoord->prepareReplSetUpdatePositionCommand(commandStyle);
+ return replCoord->prepareReplSetUpdatePositionCommand();
};
}