diff options
author | Benety Goh <benety@mongodb.com> | 2016-04-12 14:21:59 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-04-18 15:46:12 -0400 |
commit | 6811d7c70d13559c3162e8f4333c3c061e5a5220 (patch) | |
tree | 70fba42605c3ced184f175adc45901d16e02c0e1 /src/mongo/db/repl/task_runner.h | |
parent | 3bead6a7dee0c224242463d75acda511e8e8bb09 (diff) | |
download | mongo-6811d7c70d13559c3162e8f4333c3c061e5a5220.tar.gz |
SERVER-18038 added minvalid and initial sync flag support to repl storage interface
Diffstat (limited to 'src/mongo/db/repl/task_runner.h')
-rw-r--r-- | src/mongo/db/repl/task_runner.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/repl/task_runner.h b/src/mongo/db/repl/task_runner.h index f041174ffd9..b8bf39ef57b 100644 --- a/src/mongo/db/repl/task_runner.h +++ b/src/mongo/db/repl/task_runner.h @@ -31,15 +31,17 @@ #include <list> #include "mongo/base/disallow_copying.h" +#include "mongo/db/service_context.h" #include "mongo/stdx/condition_variable.h" #include "mongo/stdx/functional.h" #include "mongo/stdx/mutex.h" namespace mongo { -class OperationContext; +class Client; class Status; class OldThreadPool; +class OperationContext; namespace repl { @@ -57,7 +59,8 @@ public: kCancel = 3, }; - using CreateOperationContextFn = stdx::function<OperationContext*()>; + using CreateOperationContextFn = + stdx::function<ServiceContext::UniqueOperationContext(Client*)>; using Task = stdx::function<NextAction(OperationContext*, const Status&)>; /** |