diff options
Diffstat (limited to 'src/mongo/db/repl/reporter.cpp')
-rw-r--r-- | src/mongo/db/repl/reporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/reporter.cpp b/src/mongo/db/repl/reporter.cpp index c135c179877..5ef1405d4df 100644 --- a/src/mongo/db/repl/reporter.cpp +++ b/src/mongo/db/repl/reporter.cpp @@ -142,7 +142,7 @@ Status Reporter::trigger() { } auto scheduleResult = - _executor->scheduleWork([=](const executor::TaskExecutor::CallbackArgs& args) { + _executor->scheduleWork([=, this](const executor::TaskExecutor::CallbackArgs& args) { _prepareAndSendCommandCallback(args, true); }); @@ -252,7 +252,7 @@ void Reporter::_processResponseCallback( auto when = _executor->now() + _keepAliveInterval; bool fromTrigger = false; auto scheduleResult = _executor->scheduleWorkAt( - when, [=](const executor::TaskExecutor::CallbackArgs& args) { + when, [=, this](const executor::TaskExecutor::CallbackArgs& args) { _prepareAndSendCommandCallback(args, fromTrigger); }); _status = scheduleResult.getStatus(); |