summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_retry_scheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/remote_command_retry_scheduler.cpp')
-rw-r--r--src/mongo/client/remote_command_retry_scheduler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/client/remote_command_retry_scheduler.cpp b/src/mongo/client/remote_command_retry_scheduler.cpp
index 017f8ebf308..08e8d4477a8 100644
--- a/src/mongo/client/remote_command_retry_scheduler.cpp
+++ b/src/mongo/client/remote_command_retry_scheduler.cpp
@@ -223,7 +223,9 @@ std::string RemoteCommandRetryScheduler::toString() const {
Status RemoteCommandRetryScheduler::_schedule_inlock() {
++_currentAttempt;
auto scheduleResult = _executor->scheduleRemoteCommand(
- _request, [this](const auto& x) { return _remoteCommandCallback(x); });
+ _request,
+ stdx::bind(
+ &RemoteCommandRetryScheduler::_remoteCommandCallback, this, stdx::placeholders::_1));
if (!scheduleResult.isOK()) {
return scheduleResult.getStatus();