Skip to content

Commit

Permalink
style(MongoMemoryReplSet::_initReplSet): add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed May 4, 2022
1 parent 4df5b41 commit 884bda5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ export class MongoMemoryReplSet extends EventEmitter implements ManagerAdvanced
await primary.createAuth(primary.instanceInfo);
this._ranCreateAuth = true;

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

0 comments on commit 884bda5

Please sign in to comment.