0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-18221 Make auth1.js resilient to any node being elected primary

This commit is contained in:
Spencer T Brody 2015-04-29 13:10:55 -04:00
parent b90e930b72
commit 917091361d

View File

@ -55,6 +55,7 @@ assert.eq(result, 1, "login failed");
print("Initializing replSet with config: " + tojson(rs.getReplSetConfig()));
result = m.getDB("admin").runCommand({replSetInitiate : rs.getReplSetConfig()});
assert.eq(result.ok, 1, "couldn't initiate: "+tojson(result));
m.getDB('admin').logout(); // In case this node doesn't become primary, make sure its not auth'd
var master = rs.getMaster();
rs.awaitSecondaryNodes();