diff options
author | Pavi Vetriselvan <pvselvan@umich.edu> | 2019-06-19 14:00:25 -0400 |
---|---|---|
committer | Pavi Vetriselvan <pvselvan@umich.edu> | 2019-06-19 14:03:34 -0400 |
commit | d3c0e4ad46fcba5aac61ecec1409e9df6e11f66e (patch) | |
tree | 21232be9fb836878507588e11a435d1f9193af7e /src/mongo/db/repl/apply_ops.h | |
parent | 5f21969e6ca6c7805df0165ff81677aed1199958 (diff) | |
download | mongo-d3c0e4ad46fcba5aac61ecec1409e9df6e11f66e.tar.gz |
SERVER-41163 apply operations separately during initial sync commit transaction oplog application
Diffstat (limited to 'src/mongo/db/repl/apply_ops.h')
-rw-r--r-- | src/mongo/db/repl/apply_ops.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/repl/apply_ops.h b/src/mongo/db/repl/apply_ops.h index 0672ce6d05f..c5cca31569f 100644 --- a/src/mongo/db/repl/apply_ops.h +++ b/src/mongo/db/repl/apply_ops.h @@ -56,10 +56,15 @@ public: * This variant allows optimization for extracting multiple applyOps operations. The entry for * the non-DurableReplOperation fields of the extracted operation must be specified as * 'topLevelDoc', and need not be any of the applyOps operations. + * + * If a commitOplogEntryTS Timestamp is passed in, then we are extracting applyOps operations + * from a prepare oplog entry during initial sync. These operations must be timestamped at the + * commit oplog entry timestamp instead of the prepareTimestamp. */ static void extractOperationsTo(const OplogEntry& applyOpsOplogEntry, const BSONObj& topLevelDoc, - MultiApplier::Operations* operations); + MultiApplier::Operations* operations, + boost::optional<Timestamp> commitOplogEntryTS); }; /** |