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

Commit e7c2242

Browse files
committedDec 1, 2017
fix(retryable-writes): don't increment txnNumber on retries
NODE-1105
1 parent e6defa7 commit e7c2242

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed
 

‎lib/topologies/mongos.js

-3
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,6 @@ var executeWriteOperation = function(self, op, ns, ops, options, callback) {
912912
return callback(err);
913913
}
914914

915-
// increment and assign txnNumber
916-
options.txnNumber = txnNumber(options.session);
917-
918915
// rerun the operation
919916
server[op](ns, ops, options, callback);
920917
});

‎lib/topologies/replset.js

-3
Original file line numberDiff line numberDiff line change
@@ -1184,9 +1184,6 @@ var executeWriteOperation = function(self, op, ns, ops, options, callback) {
11841184
return callback(new MongoError('no primary server found'));
11851185
}
11861186

1187-
// increment and assign txnNumber
1188-
options.txnNumber = txnNumber(options.session);
1189-
11901187
// rerun the operation
11911188
self.s.replicaSetState.primary[op](ns, ops, options, callback);
11921189
});

0 commit comments

Comments
 (0)
This repository has been archived.