From 31d94c844e76b3204b2280640d639a3141c2231c Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Wed, 25 Oct 2017 15:46:47 -0400 Subject: SERVER-31678 Thread through the operation wall-clock time for oplog entries --- src/mongo/db/repl/oplog.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/repl/oplog.h') diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h index 78f1c4f8103..df2178a66aa 100644 --- a/src/mongo/db/repl/oplog.h +++ b/src/mongo/db/repl/oplog.h @@ -110,7 +110,8 @@ std::vector logInsertOps(OperationContext* opCtx, Session* session, std::vector::const_iterator begin, std::vector::const_iterator end, - bool fromMigrate); + bool fromMigrate, + Date_t wallClockTime); /** * @param opstr @@ -124,6 +125,9 @@ std::vector logInsertOps(OperationContext* opCtx, * For 'u' records, 'obj' captures the mutation made to the object but not * the object itself. 'o2' captures the the criteria for the object that will be modified. * + * wallClockTime this specifies the wall-clock timestamp of then this oplog entry was generated. It + * is purely informational, may not be monotonically increasing and is not interpreted in any way + * by the replication subsystem. * oplogLink this contains the timestamp that points to the previous write that will be * linked via prevTs, and the timestamps of the oplog entry that contains the document * before/after update was applied. The timestamps are ignored if isNull() is true. @@ -138,6 +142,7 @@ OpTime logOp(OperationContext* opCtx, const BSONObj& obj, const BSONObj* o2, bool fromMigrate, + Date_t wallClockTime, const OperationSessionInfo& sessionInfo, StmtId stmtId, const OplogLink& oplogLink); -- cgit v1.2.1