diff options
author | Benety Goh <benety@mongodb.com> | 2018-05-02 20:03:37 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-05-02 20:03:37 -0400 |
commit | feadc837b1e94efaa769313641f37ce2c98bea25 (patch) | |
tree | 60951c7e55b729d1486de28c74e0f2332b6c8b57 /src/mongo/db/repl/multiapplier.h | |
parent | 978ee4b254f75351006648577f1e0fd3673ee412 (diff) | |
download | mongo-feadc837b1e94efaa769313641f37ce2c98bea25.tar.gz |
SERVER-32335 remove unnecessary applyOperationFn constructor argument from MultiApplier
DataReplicator::multiApply() stopped requiring this function since commit d6470f917762315ab93b2f7719da78cafdb8d8bf
Diffstat (limited to 'src/mongo/db/repl/multiapplier.h')
-rw-r--r-- | src/mongo/db/repl/multiapplier.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/mongo/db/repl/multiapplier.h b/src/mongo/db/repl/multiapplier.h index 1f3392a946e..6164fd8e163 100644 --- a/src/mongo/db/repl/multiapplier.h +++ b/src/mongo/db/repl/multiapplier.h @@ -67,17 +67,8 @@ public: */ using CallbackFn = stdx::function<void(const Status&)>; - /** - * Type of function for a writer thread during oplog application to apply a set of operations - * that have been assigned (hashed by SyncTail::fillWriterVectors()) to that writer thread. - * In production, this function would have the same outcome as calling SyncTail::syncApply() - * (oplog application mode will be embedded in the function implementation). - */ - using ApplyOperationFn = - stdx::function<Status(OperationContext*, OperationPtrs*, WorkerMultikeyPathInfo*)>; - - using MultiApplyFn = stdx::function<StatusWith<OpTime>( - OperationContext*, MultiApplier::Operations, MultiApplier::ApplyOperationFn)>; + using MultiApplyFn = + stdx::function<StatusWith<OpTime>(OperationContext*, MultiApplier::Operations)>; /** * Creates MultiApplier in inactive state. @@ -94,7 +85,6 @@ public: */ MultiApplier(executor::TaskExecutor* executor, const Operations& operations, - const ApplyOperationFn& applyOperation, const MultiApplyFn& multiApply, const CallbackFn& onCompletion); @@ -154,7 +144,6 @@ private: executor::TaskExecutor* _executor; Operations _operations; - ApplyOperationFn _applyOperation; MultiApplyFn _multiApply; CallbackFn _onCompletion; |