Files
mongo/client/clientOnly.cpp

34 lines
676 B
C++
Raw Normal View History

#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;
2009-01-25 16:25:36 -05:00
::exit( returnCode );
}
bool inShutdown(){
return dbexitCalled;
}
string getDbContext() {
return "in client only mode";
}
bool haveLocalShardingInfo( const string& ns ){
return false;
}
}