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

yet another rs test fix

This commit is contained in:
Kristina Chodorow 2010-11-10 20:39:18 -05:00
parent c9e24c3b67
commit 21bed454ab

View File

@ -88,8 +88,8 @@ admin_s2.runCommand({replSetFreeze:999999});
wait(function() {
var status = admin_s2.runCommand({replSetGetStatus:1});
printjson(status);
return status.members[2].state == 3 ||
status.members[2].state == 2;
return status.members &&
(status.members[2].state == 3 || status.members[2].state == 2;
});