Skip to content

Commit 3331ec9

Browse files
daprahamianmbroadst
authored andcommitted
fix(Collection): fix session leak in parallelCollectonScan
Makes sure that parallelCollectionScan does not create an implicit session, so that it does not leak or expire.
1 parent baca5b7 commit 3331ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/collection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2590,7 +2590,7 @@ Collection.prototype.parallelCollectionScan = function(options, callback) {
25902590
options.promiseLibrary = this.s.promiseLibrary;
25912591

25922592
return executeOperation(this.s.topology, parallelCollectionScan, [this, options, callback], {
2593-
returnsCursor: true
2593+
skipSessions: true
25942594
});
25952595
};
25962596

0 commit comments

Comments
 (0)