indicate in mongo shell prompt if connected to a mongos. goal would be to prevent fat fingers and similar confusion.
This commit is contained in:
@@ -465,6 +465,9 @@ string sayReplSetMemberState() {
|
||||
ss << stateToString(ms);
|
||||
return ss.str();
|
||||
}
|
||||
else if( str::equals(info.getStringField("info"), "mongos") ) {
|
||||
return "mongos";
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( std::exception& e ) {
|
||||
|
||||
Reference in New Issue
Block a user