diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-02-01 00:31:55 -0500 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-02-06 16:59:08 -0500 |
commit | 603ffac833b945fddf962fc450c65bb67c7733a1 (patch) | |
tree | 075c17d0d6abd0e30a765f37ac94f39f6674ad3e /src/mongo/db/repl/oplog_entry.idl | |
parent | a03293b4bd08fa2b197ce75b94d2ad158884919e (diff) | |
download | mongo-603ffac833b945fddf962fc450c65bb67c7733a1.tar.gz |
SERVER-32918 Extract operation fields of OplogEntryBase into chained ReplOperation.
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.idl')
-rw-r--r-- | src/mongo/db/repl/oplog_entry.idl | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/src/mongo/db/repl/oplog_entry.idl b/src/mongo/db/repl/oplog_entry.idl index 06b9dfe5ae7..c37f1a45fc0 100644 --- a/src/mongo/db/repl/oplog_entry.idl +++ b/src/mongo/db/repl/oplog_entry.idl @@ -46,12 +46,39 @@ enums: kNoop: "n" structs: + ReplOperation: + description: A document that represents an operation in transaction. + fields: + op: + cpp_name: opType + type: OpType + description: "The operation type" + ns: + cpp_name: namespace + type: namespacestring + description: "The namespace on which to apply the operation" + ui: + cpp_name: uuid + type: uuid + optional: true + description: "The UUID of the collection" + o: + cpp_name: object + type: object + description: "The operation applied" + o2: + cpp_name: object2 + type: object + optional: true + description: "Additional information about the operation applied" + OplogEntryBase: description: A document in which the server stores an oplog entry. immutable: true inline_chained_structs: true chained_structs: OperationSessionInfo : OperationSessionInfo + ReplOperation: ReplOperation fields: ts: cpp_name: timestamp @@ -71,32 +98,10 @@ structs: type: safeInt64 default: 1 description: "The version of the oplog" - op: - cpp_name: opType - type: OpType - description: "The operation type" - ns: - cpp_name: namespace - type: namespacestring - description: "The namespace on which to apply the operation" - ui: - cpp_name: uuid - type: uuid - optional: true - description: "The UUID of the collection" fromMigrate: type: bool optional: true description: "An operation caused by a chunk migration" - o: - cpp_name: object - type: object - description: "The operation applied" - o2: - cpp_name: object2 - type: object - optional: true - description: "Additional information about the operation applied" _id: type: objectid optional: true |