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";
|
|
|
|
// Database* database = 0;
|
|
|
|
|
2009-01-15 16:17:11 +01:00
|
|
|
void dbexit(int returnCode, const char *whyMsg ) {
|
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-01-15 16:17:11 +01:00
|
|
|
string getDbContext() {
|
2009-01-15 16:08:20 +01:00
|
|
|
return "in client only mode";
|
|
|
|
}
|
|
|
|
}
|