diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-25 15:46:47 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-25 17:35:26 -0400 |
commit | 31d94c844e76b3204b2280640d639a3141c2231c (patch) | |
tree | 63b8c8a97d24f1635987dded92378e473f6739f5 /src/mongo/db/repl/oplog.h | |
parent | 7d39fcc31b1b05a3baae46db0463b5bdad0727ee (diff) | |
download | mongo-31d94c844e76b3204b2280640d639a3141c2231c.tar.gz |
SERVER-31678 Thread through the operation wall-clock time for oplog entries
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
-rw-r--r-- | src/mongo/db/repl/oplog.h | 7 |
1 files changed, 6 insertions, 1 deletions
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<OpTime> logInsertOps(OperationContext* opCtx, Session* session, std::vector<InsertStatement>::const_iterator begin, std::vector<InsertStatement>::const_iterator end, - bool fromMigrate); + bool fromMigrate, + Date_t wallClockTime); /** * @param opstr @@ -124,6 +125,9 @@ std::vector<OpTime> 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); |