File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const executeOperation = require('../operations/execute_operation');
11
11
const Readable = require ( 'stream' ) . Readable ;
12
12
const SUPPORTS = require ( '../utils' ) . SUPPORTS ;
13
13
const MongoDBNamespace = require ( '../utils' ) . MongoDBNamespace ;
14
+ const mergeOptions = require ( '../utils' ) . mergeOptions ;
14
15
const OperationBase = require ( '../operations/operation' ) . OperationBase ;
15
16
16
17
const BSON = retrieveBSON ( ) ;
@@ -207,7 +208,9 @@ class CoreCursor extends Readable {
207
208
* @return {Cursor }
208
209
*/
209
210
clone ( ) {
210
- return this . topology . cursor ( this . ns , this . cmd , this . options ) ;
211
+ const clonedOptions = mergeOptions ( { } , this . options ) ;
212
+ delete clonedOptions . session ;
213
+ return this . topology . cursor ( this . ns , this . cmd , clonedOptions ) ;
211
214
}
212
215
213
216
/**
You can’t perform that action at this time.
0 commit comments