diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp index 30aa0b7994e..d2632f2dae9 100644 --- a/shell/dbshell.cpp +++ b/shell/dbshell.cpp @@ -456,7 +456,7 @@ void sayReplSetMemberState() { if( latestConn->simpleCommand("admin", &info, "replSetGetStatus") ) { stringstream ss; ss << info["set"].String() << ':'; - int s = info["myState"].Number(); + int s = info["myState"].Int(); MemberState ms(s); ss << stateToString(ms); cout << ss.str();