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/session_txn_record.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/session_txn_record.idl')
-rw-r--r-- | src/mongo/db/session_txn_record.idl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mongo/db/session_txn_record.idl b/src/mongo/db/session_txn_record.idl index 3a9dc02328d..fa81319225b 100644 --- a/src/mongo/db/session_txn_record.idl +++ b/src/mongo/db/session_txn_record.idl @@ -30,11 +30,21 @@ global: cpp_namespace: "mongo" cpp_includes: - "mongo/db/logical_session_id.h" + - "mongo/db/repl/optime.h" imports: - "mongo/idl/basic_types.idl" - "mongo/db/logical_session_id.idl" +# TODO: SERVER-31278 import from repl/replication_types.idl instead +types: + optime: + bson_serialization_type: object + description: A document representing an OpTime. + cpp_type: "repl::OpTime" + serializer: repl::OpTime::toBSON + deserializer: repl::OpTime::parse + structs: sessionTxnRecord: description: "A document used for storing session transaction states." @@ -46,8 +56,8 @@ structs: txnNum: type: TxnNumber description: "The id representing this transaction." - lastWriteOpTimeTs: - type: timestamp + lastWriteOpTime: + type: optime description: "The optime timestamp component of the last write on this transaction." |