mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
compile
This commit is contained in:
parent
f6a923ca3f
commit
eb4c54bf5a
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user