summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2017-12-06 14:40:59 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2017-12-14 17:50:41 -0500
commit950fa6e6fd8f46248796dea3bc6c2392757b163d (patch)
tree2556f9322ee634477fc54b6876653b8ea702b8fa /src/mongo/s
parentd2eedbeeedb61753c17b6a87912e4b14e7611b95 (diff)
downloadmongo-950fa6e6fd8f46248796dea3bc6c2392757b163d.tar.gz
SERVER-32070 migrate some easy stdx::bind to lambdas (pt3)
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/async_requests_sender.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/async_requests_sender.cpp b/src/mongo/s/async_requests_sender.cpp
index 0dc955fe119..8cdb7190050 100644
--- a/src/mongo/s/async_requests_sender.cpp
+++ b/src/mongo/s/async_requests_sender.cpp
@@ -241,9 +241,9 @@ Status AsyncRequestsSender::_scheduleRequest(WithLock, size_t remoteIndex) {
*remote.shardHostAndPort, _db, remote.cmdObj, _metadataObj, _opCtx);
auto callbackStatus = _executor->scheduleRemoteCommand(
- request,
- stdx::bind(
- &AsyncRequestsSender::_handleResponse, this, stdx::placeholders::_1, remoteIndex));
+ request, [=](const executor::TaskExecutor::RemoteCommandCallbackArgs& cbData) {
+ _handleResponse(cbData, remoteIndex);
+ });
if (!callbackStatus.isOK()) {
return callbackStatus.getStatus();
}