summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/apply_ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/apply_ops.h')
-rw-r--r--src/mongo/db/repl/apply_ops.h7
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);
};
/**