summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_executor_synchronous.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/service_executor_synchronous.cpp')
-rw-r--r--src/mongo/transport/service_executor_synchronous.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/service_executor_synchronous.cpp b/src/mongo/transport/service_executor_synchronous.cpp
index 15724d3470c..10cc0ad3cce 100644
--- a/src/mongo/transport/service_executor_synchronous.cpp
+++ b/src/mongo/transport/service_executor_synchronous.cpp
@@ -114,7 +114,7 @@ Status ServiceExecutorSynchronous::schedule(Task task, ScheduleFlags flags) {
LOGV2_DEBUG(22983, 3, "Starting new executor thread in passthrough mode");
Status status = launchServiceWorkerThread(
- [this, condVarAnchor = _shutdownCondition, task = std::move(task)] {
+ [this, condVarAnchor = _shutdownCondition, task = std::move(task)]() mutable {
_numRunningWorkerThreads.addAndFetch(1);
_localWorkQueue.emplace_back(std::move(task));