summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2020-08-14 16:44:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-14 16:57:02 +0000
commitb99d749bac6236da073ee200edceef8ff25901d9 (patch)
tree1bc2e98efc20cf84514231f374fa5d2b8621b6f7
parent7ef0e225846a25821325bd24fc66d29f4c503385 (diff)
downloadmongo-b99d749bac6236da073ee200edceef8ff25901d9.tar.gz
SERVER-50308 Capture host variable by value in callback.
(cherry picked from commit f66f0e54ff6b71000b9a3404d5d9dd43f51f874a)
-rw-r--r--src/mongo/s/query/establish_cursors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/query/establish_cursors.cpp b/src/mongo/s/query/establish_cursors.cpp
index f727a38eef6..a4f219ed5c6 100644
--- a/src/mongo/s/query/establish_cursors.cpp
+++ b/src/mongo/s/query/establish_cursors.cpp
@@ -71,7 +71,7 @@ void killOpOnShards(std::shared_ptr<executor::TaskExecutor> executor,
// We do not process the response to the killOperations request (we make a good-faith
// attempt at cleaning up the cursors, but ignore any returned errors).
- uassertStatusOK(executor->scheduleRemoteCommand(request, [&](auto const& args) {
+ uassertStatusOK(executor->scheduleRemoteCommand(request, [host](auto const& args) {
if (!args.response.isOK()) {
LOGV2_DEBUG(4625504,
2,