0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00
This commit is contained in:
Alberto Lerner 2010-11-23 08:18:37 -05:00
parent f6a923ca3f
commit eb4c54bf5a

View File

@ -456,7 +456,7 @@ void sayReplSetMemberState() {
if( latestConn->simpleCommand("admin", &info, "replSetGetStatus") ) { if( latestConn->simpleCommand("admin", &info, "replSetGetStatus") ) {
stringstream ss; stringstream ss;
ss << info["set"].String() << ':'; ss << info["set"].String() << ':';
int s = info["myState"].Number(); int s = info["myState"].Int();
MemberState ms(s); MemberState ms(s);
ss << stateToString(ms); ss << stateToString(ms);
cout << ss.str(); cout << ss.str();