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:
parent
dbf5897d45
commit
82fbc63e7c
@ -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;
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user