diff options
author | Jason Chan <jason.chan@10gen.com> | 2019-05-22 15:41:21 -0400 |
---|---|---|
committer | Jason Chan <jason.chan@10gen.com> | 2019-05-22 15:41:21 -0400 |
commit | 76cf536d476b50994c75dd16ec5c7caca23759a5 (patch) | |
tree | 3362715b7b68d742c80dc21a9c900cdfb96572a7 /src/mongo/db/repl/oplog.h | |
parent | fabcd95aa7c86f673387fd0143b88013168d71d6 (diff) | |
download | mongo-76cf536d476b50994c75dd16ec5c7caca23759a5.tar.gz |
SERVER-40919 Remove stmtId from transaction oplog entries
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
-rw-r--r-- | src/mongo/db/repl/oplog.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h index 16a4880ac1c..b8729038179 100644 --- a/src/mongo/db/repl/oplog.h +++ b/src/mongo/db/repl/oplog.h @@ -120,6 +120,8 @@ std::vector<OpTime> logInsertOps(OperationContext* opCtx, * 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. + * stmtId specifies the statementId of an operation. For transaction operations, stmtId is always + * boost::none. * 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,7 +140,7 @@ OpTime logOp(OperationContext* opCtx, bool fromMigrate, Date_t wallClockTime, const OperationSessionInfo& sessionInfo, - StmtId stmtId, + boost::optional<StmtId> stmtId, const OplogLink& oplogLink, const OplogSlot& oplogSlot); |