Skip to content

Commit 8eea20f

Browse files
committed
Fix a typo found by Copilot
1 parent c726922 commit 8eea20f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver-core/src/main/com/mongodb/internal/operation/CommandOperationHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)