Files
mongo/client/clientOnly.cpp
2009-08-05 17:15:04 -04:00

30 lines
595 B
C++

#include "../stdafx.h"
namespace mongo {
const char * curNs = "in client mode";
bool quiet = false;
// Database* database = 0;
bool dbexitCalled = false;
void dbexit( ExitCode returnCode, const char *whyMsg ) {
dbexitCalled = true;
out() << "dbexit called" << endl;
if ( whyMsg )
out() << " b/c " << whyMsg << endl;
out() << "exiting" << endl;
::exit( returnCode );
}
bool inShutdown(){
return dbexitCalled;
}
string getDbContext() {
return "in client only mode";
}
}