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

rs test fix

This commit is contained in:
Kristina Chodorow 2010-11-10 13:37:41 -05:00
parent dbf5897d45
commit 82fbc63e7c

View File

@ -111,7 +111,7 @@ reconnect(master);
wait(function() {
var status = admin.runCommand({replSetGetStatus:1});
printjson(status);
return status.members[0].state == 1;
return status.members && status.members[0].state == 1;
});