diff options
author | Randolph Tan <randolph@10gen.com> | 2017-09-26 17:45:15 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-10-04 16:43:58 -0400 |
commit | 0ab7000e04e16813c1e1e3f131f02de102ddffba (patch) | |
tree | 07c771aa1229bc85755f952dcc9a157a8d4e2dd2 /src/mongo/db/repl/oplog_entry.idl | |
parent | d6267ee66b997af73fcfb095f03f655bb61c06dc (diff) | |
download | mongo-0ab7000e04e16813c1e1e3f131f02de102ddffba.tar.gz |
SERVER-31030 Use full OpTime instead of just Timestamps to refer to oplog entries
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.idl')
-rw-r--r-- | src/mongo/db/repl/oplog_entry.idl | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mongo/db/repl/oplog_entry.idl b/src/mongo/db/repl/oplog_entry.idl index a01b38f2ee0..3f1e7cee003 100644 --- a/src/mongo/db/repl/oplog_entry.idl +++ b/src/mongo/db/repl/oplog_entry.idl @@ -32,6 +32,7 @@ global: imports: - "mongo/idl/basic_types.idl" - "mongo/db/logical_session_id.idl" + - "mongo/db/repl/replication_types.idl" enums: OpType: @@ -110,18 +111,18 @@ structs: # must exist. description: "Identifier of the transaction statement which generated this oplog entry" - prevTs: - cpp_name: prevWriteTsInTransaction - type: timestamp + prevOpTime: + cpp_name: prevWriteOpTimeInTransaction + type: optime optional: true # Only for writes that are part of a transaction - description: "The oplog timestamp of the previous write with the same transaction." - preImageTs: - type: timestamp + description: "The opTime of the previous write with the same transaction." + preImageOpTime: + type: optime optional: true - description: "The oplog timestamp of another oplog entry that contains the document + description: "The optime of another oplog entry that contains the document before an update/remove was applied." - postImageTs: - type: timestamp + postImageOpTime: + type: optime optional: true - description: "The oplog timestamp of another oplog entry that contains the document + description: "The optime of another oplog entry that contains the document after an update was applied." |