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:
Dwight
2011-04-14 16:47:06 -04:00
parent d65b438a5f
commit 39c5cbdbf7
2 changed files with 5 additions and 1 deletions

View File

@@ -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 ) {