diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2017-12-13 13:27:01 -0500 |
---|---|---|
committer | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2018-01-24 11:59:34 -0500 |
commit | ac09fdacce30f228e0d129397b6b2089a111c6e7 (patch) | |
tree | 61c55d8869397a4a5e1bb74e2fc4a374234ebc15 /src/mongo/db/repl/sync_source_feedback.cpp | |
parent | 317bede1b8e58056855dc77de69a6db5f4014423 (diff) | |
download | mongo-ac09fdacce30f228e0d129397b6b2089a111c6e7.tar.gz |
SERVER-28895 Remove old form of replSetUpdatePosition command
(cherry picked from commit fcbce71b912723aac77ab1ec4efec8e15114a86c)
Diffstat (limited to 'src/mongo/db/repl/sync_source_feedback.cpp')
-rw-r--r-- | src/mongo/db/repl/sync_source_feedback.cpp | 5 |
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(); }; } |