summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_session_id.idl
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2021-08-19 05:37:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-01 22:02:16 +0000
commit22beeff23a26e44127a15587e8bfd84f1d1e916c (patch)
treebc88a80b18693021bdb60db0399d9ec20630e97c /src/mongo/db/logical_session_id.idl
parent9486a2779da1e8821b4b6d90ef3327a649c10b62 (diff)
downloadmongo-22beeff23a26e44127a15587e8bfd84f1d1e916c.tar.gz
SERVER-58752 Support retrying internal transactions on transient transaction errors
Diffstat (limited to 'src/mongo/db/logical_session_id.idl')
-rw-r--r--src/mongo/db/logical_session_id.idl16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_id.idl b/src/mongo/db/logical_session_id.idl
index 1f356d5f046..4fcae11e9ba 100644
--- a/src/mongo/db/logical_session_id.idl
+++ b/src/mongo/db/logical_session_id.idl
@@ -55,6 +55,14 @@ types:
cpp_type: "std::int32_t"
deserializer: "mongo::BSONElement::_numberInt"
+ TxnRetryCounter:
+ description: "A strictly-increasing per-transaction counter that starts at 0 and is incremented
+ every time the transaction is internally retried on a transient transaction
+ error."
+ bson_serialization_type: int
+ cpp_type: "std::int32_t"
+ deserializer: "mongo::BSONElement::_numberInt"
+
structs:
InternalSessionFields:
description: "Internal sessiond id fields"
@@ -131,6 +139,10 @@ structs:
operation executes."
type: TxnNumber
optional: true
+ txnRetryCounter:
+ description: "The transaction retry counter for this transaction."
+ type: TxnRetryCounter
+ optional: true
OperationSessionInfoFromClient:
description: "Parser for pulling out the sessionId/txnNumber combination from commands"
@@ -145,6 +157,10 @@ structs:
operation executes."
type: TxnNumber
optional: true
+ txnRetryCounter:
+ description: "The transaction retry counter for this transaction."
+ type: TxnRetryCounter
+ optional: true
autocommit:
type: bool
optional: true