summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/task_runner.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2019-03-05 13:40:25 -0500
committerBen Caimano <ben.caimano@10gen.com>2019-04-05 14:28:40 -0400
commita08bac3e29cd9ec3d030623894928e80c2f572dd (patch)
treea82304a07e67909a8d8a40ec08959f4f1c8ccace /src/mongo/db/repl/task_runner.cpp
parentb1aa248f71ffb197c6576fd90ff7571ee9a96c3f (diff)
downloadmongo-a08bac3e29cd9ec3d030623894928e80c2f572dd.tar.gz
SERVER-39965 OutOfLineExecutor Tasks are now unique_function(Status)
Diffstat (limited to 'src/mongo/db/repl/task_runner.cpp')
-rw-r--r--src/mongo/db/repl/task_runner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/repl/task_runner.cpp b/src/mongo/db/repl/task_runner.cpp
index 2226ad2bcba..b4036617a57 100644
--- a/src/mongo/db/repl/task_runner.cpp
+++ b/src/mongo/db/repl/task_runner.cpp
@@ -113,7 +113,10 @@ void TaskRunner::schedule(Task task) {
return;
}
- invariant(_threadPool->schedule([this] { _runTasks(); }));
+ _threadPool->schedule([this](auto status) {
+ invariant(status);
+ _runTasks();
+ });
_active = true;
_cancelRequested = false;