Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit f89eb61

Browse files
committed
nit: casing on comments
1 parent 5a6541f commit f89eb61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/sessions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function endTransaction(session, commandName, callback) {
453453
if (isUnknownTransactionCommitResult(e)) {
454454
e.errorLabels.push('UnknownTransactionCommitResult');
455455

456-
// Per Mongos Pinning, must unpin session
456+
// per txns spec, must unpin session in this case
457457
session.transaction.unpinServer();
458458
}
459459
}
@@ -474,9 +474,9 @@ function endTransaction(session, commandName, callback) {
474474
if (err && isRetryableError(err)) {
475475
// SPEC-1185: apply majority write concern when retrying commitTransaction
476476
if (command.commitTransaction) {
477-
// Per Mongos Pinning, must unpin session
477+
// per txns spec, must unpin session in this case
478478
session.transaction.unpinServer();
479-
479+
480480
command.writeConcern = Object.assign({ wtimeout: 10000 }, command.writeConcern, {
481481
w: 'majority'
482482
});

0 commit comments

Comments
 (0)