Skip to content

Commit 884bda5

Browse files
committed
style(MongoMemoryReplSet::_initReplSet): add todo
1 parent 4df5b41 commit 884bda5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ export class MongoMemoryReplSet extends EventEmitter implements ManagerAdvanced
682682
await primary.createAuth(primary.instanceInfo);
683683
this._ranCreateAuth = true;
684684

685+
// TODO: maybe change the static "isInMemory" to be for each server individually, based on "storageEngine", not just the first one
685686
if (!isInMemory) {
686687
log('_initReplSet: closing connection for restart');
687688
await con.close(); // close connection in preparation for "stop"

0 commit comments

Comments
 (0)