File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
packages/mongodb-memory-server-core/src Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -253,13 +253,7 @@ export default class MongoMemoryReplSet extends EventEmitter {
253253
254254 // MongoClient HACK which helps to avoid the following error:
255255 // "RangeError: Maximum call stack size exceeded"
256- // in ./node_modules/mongodb/lib/core/sdam/topology_description.js:263:51
257- // Under the hood initiated server topology has type `RSGhost`
258- // and this server does not support session
259- // so for skipping the following code
260- // https://github.com/mongodb/node-mongodb-native/blob/dc70c2de7d3dae2617708c45a1ea695d131e15f3/lib/operations/execute_operation.js#L33-L39
261- // we just override shouldCheckForSessionSupport() method for current connection instance
262- ( db as any ) . topology . shouldCheckForSessionSupport = ( ) => false ;
256+ // (db as any).topology.shouldCheckForSessionSupport = () => false; // TODO: remove after 1.1.2021 if no issues arise
263257
264258 /** reference to "db.admin()" */
265259 const admin = db . admin ( ) ;
You can’t perform that action at this time.
0 commit comments