We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76f7e35 commit 68b4048Copy full SHA for 68b4048
database/init/00-replica-set.js
@@ -13,7 +13,8 @@ function ensurePrimaryHost(forceReconfig) {
13
try {
14
conf = rs.conf();
15
} catch (error) {
16
- if (!forceReconfig || !db.getSiblingDB("local").system.replset.findOne()) {
+ conf = db.getSiblingDB("local").system.replset.findOne();
17
+ if (!forceReconfig || !conf) {
18
throw error;
19
}
20
0 commit comments