Skip to content

Commit

Permalink
fix(Collection): fix session leak in parallelCollectonScan
Browse files Browse the repository at this point in the history
Makes sure that parallelCollectionScan does not create an implicit
session, so that it does not leak or expire.
  • Loading branch information
daprahamian authored and mbroadst committed Mar 19, 2018
1 parent baca5b7 commit 3331ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2590,7 +2590,7 @@ Collection.prototype.parallelCollectionScan = function(options, callback) {
options.promiseLibrary = this.s.promiseLibrary;

return executeOperation(this.s.topology, parallelCollectionScan, [this, options, callback], {
returnsCursor: true
skipSessions: true
});
};

Expand Down

0 comments on commit 3331ec9

Please sign in to comment.