2009-01-15 17:26:38 +01:00
|
|
|
#include "../stdafx.h"
|
2009-01-15 16:08:20 +01:00
|
|
|
|
|
|
|
namespace mongo {
|
|
|
|
|
|
|
|
const char * curNs = "in client mode";
|
2009-06-05 16:35:04 +02:00
|
|
|
|
|
|
|
bool quiet = false;
|
|
|
|
|
2009-01-15 16:08:20 +01:00
|
|
|
// Database* database = 0;
|
2009-08-05 23:15:04 +02:00
|
|
|
|
|
|
|
bool dbexitCalled = false;
|
2009-01-15 16:08:20 +01:00
|
|
|
|
2009-08-05 22:00:27 +02:00
|
|
|
void dbexit( ExitCode returnCode, const char *whyMsg ) {
|
2009-08-05 23:15:04 +02:00
|
|
|
dbexitCalled = true;
|
2009-01-15 17:26:38 +01:00
|
|
|
out() << "dbexit called" << endl;
|
2009-01-15 16:08:20 +01:00
|
|
|
if ( whyMsg )
|
2009-01-15 17:26:38 +01:00
|
|
|
out() << " b/c " << whyMsg << endl;
|
|
|
|
out() << "exiting" << endl;
|
2009-01-25 22:25:36 +01:00
|
|
|
::exit( returnCode );
|
2009-01-15 16:08:20 +01:00
|
|
|
}
|
2009-08-05 23:15:04 +02:00
|
|
|
|
|
|
|
bool inShutdown(){
|
|
|
|
return dbexitCalled;
|
|
|
|
}
|
2009-01-15 16:08:20 +01:00
|
|
|
|
2009-01-15 16:17:11 +01:00
|
|
|
string getDbContext() {
|
2009-01-15 16:08:20 +01:00
|
|
|
return "in client only mode";
|
|
|
|
}
|
2009-09-10 16:36:11 +02:00
|
|
|
|
|
|
|
bool haveLocalShardingInfo( const string& ns ){
|
|
|
|
return false;
|
|
|
|
}
|
2009-01-15 16:08:20 +01:00
|
|
|
}
|