File tree Expand file tree Collapse file tree
driver-core/src/main/com/mongodb/internal/operation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ static boolean isRetryableWriteCommand(final BsonDocument command) {
221221 // https://github.com/mongodb/specifications/blame/7039e69945d463a14b1b727d16db063e21f48f53/source/transactions/transactions.md#L584-L586:
222222 // When executing the `commitTransaction` and `abortTransaction` commands within a transaction
223223 // drivers MUST use the same `txnNumber` used for all preceding commands in the transaction.
224- // the additional checks if the `command` is either `commitTransaction`/`abortTransaction, may seem unnecessary.
224+ // the additional checks if the `command` is either `commitTransaction`/`abortTransaction` , may seem unnecessary.
225225 // However, since the `txnNumber` key is added to commands within transactions by `CommandMessage`,
226226 // the key is not present when the logic of automatic retries inspects a `commitTransaction`/`abortTransaction` command for it.
227227 return (command .containsKey ("txnNumber" )
You can’t perform that action at this time.
0 commit comments