diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2019-02-26 01:28:43 -0500 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2019-03-07 11:31:58 -0500 |
commit | ca69cd4a88a7fb5073ee1fa6f2b70d3bbecd88f8 (patch) | |
tree | ba7fb042e38fbf9caf0fb309ce0cb966c770554a /src/mongo/db/commands/txn_cmds.idl | |
parent | 91daf30b31e60048025162663ccb4f40cc24a837 (diff) | |
download | mongo-ca69cd4a88a7fb5073ee1fa6f2b70d3bbecd88f8.tar.gz |
SERVER-39874 Make shard return readOnly bool in response to successful transaction statements
Diffstat (limited to 'src/mongo/db/commands/txn_cmds.idl')
-rw-r--r-- | src/mongo/db/commands/txn_cmds.idl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/commands/txn_cmds.idl b/src/mongo/db/commands/txn_cmds.idl index 1524c8917a0..97fa9a7d689 100644 --- a/src/mongo/db/commands/txn_cmds.idl +++ b/src/mongo/db/commands/txn_cmds.idl @@ -34,6 +34,17 @@ imports: - "mongo/s/sharding_types.idl" structs: + TxnResponseMetadata: + description: "Contains fields a participant attaches in responses to successful transaction + statements" + strict: false + fields: + readOnly: + description: "True if the shard has the transaction in progress but has not done a + write for it" + type: bool + + TxnRecoveryToken: description: "Contains info for retrying the commit of a sharded transaction" fields: |