diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-23 10:58:04 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-25 09:10:33 -0400 |
commit | 080514c9ee36564d8342cd832f3c5f3a199a9845 (patch) | |
tree | 00b92f28d6e00826b9b094a01d14248a550d0cca /src/mongo/db/repl/oplog.h | |
parent | 67f735e6705091659e2a8cf46a9285f09bcf749a (diff) | |
download | mongo-080514c9ee36564d8342cd832f3c5f3a199a9845.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); |