show repl state in shell prompt. needs more work

This commit is contained in:
dwight
2010-11-23 04:16:04 -05:00
parent 95517ebb68
commit f6a923ca3f
8 changed files with 104 additions and 59 deletions

View File

@@ -50,6 +50,7 @@
namespace mongo {
DBClientWithCommands *latestConn = 0;
extern bool dbexitCalled;
#ifdef _WIN32
@@ -903,6 +904,7 @@ namespace mongo {
mongo::mutex _allMyUrisMutex("_allMyUrisMutex");
bool _nokillop = false;
void onConnect( DBClientWithCommands &c ) {
latestConn = &c;
if ( _nokillop ) {
return;
}