summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/multiapplier.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2016-06-14 15:51:40 -0400
committerMathias Stearn <mathias@10gen.com>2016-06-22 16:04:36 -0400
commit9fe9ddc29177f1929884f00cf9220fbcd5d932f4 (patch)
tree1fe42a12d5daed8f920d50b087589f0205337788 /src/mongo/db/repl/multiapplier.h
parente508ddcb51eec941ae50d9c2efb06b601811dc19 (diff)
downloadmongo-9fe9ddc29177f1929884f00cf9220fbcd5d932f4.tar.gz
SERVER-24242 Stop copying OplogEntries so much
With this change, we should no longer be copying any OplogEntries during steady-state replication.
Diffstat (limited to 'src/mongo/db/repl/multiapplier.h')
-rw-r--r--src/mongo/db/repl/multiapplier.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/repl/multiapplier.h b/src/mongo/db/repl/multiapplier.h
index e4f355ebd80..639c2fbbc2b 100644
--- a/src/mongo/db/repl/multiapplier.h
+++ b/src/mongo/db/repl/multiapplier.h
@@ -58,6 +58,8 @@ public:
*/
using Operations = std::vector<OplogEntry>;
+ using OperationPtrs = std::vector<const OplogEntry*>;
+
/**
* Callback function to report final status of applying operations along with
* list of operations (if applicable) that were not successfully applied.
@@ -71,10 +73,10 @@ public:
* would have the same outcome as calling SyncTail::syncApply() ('convertUpdatesToUpserts'
* value will be embedded in the function implementation).
*/
- using ApplyOperationFn = stdx::function<void(const Operations&)>;
+ using ApplyOperationFn = stdx::function<void(OperationPtrs*)>;
using MultiApplyFn = stdx::function<StatusWith<OpTime>(
- OperationContext*, const MultiApplier::Operations&, MultiApplier::ApplyOperationFn)>;
+ OperationContext*, MultiApplier::Operations, MultiApplier::ApplyOperationFn)>;
/**
* Creates MultiApplier in inactive state.