diff options
Diffstat (limited to 'client/clientOnly.cpp')
-rw-r--r-- | client/clientOnly.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/client/clientOnly.cpp b/client/clientOnly.cpp index 6178257..726c3a9 100644 --- a/client/clientOnly.cpp +++ b/client/clientOnly.cpp @@ -29,7 +29,7 @@ namespace mongo { bool dbexitCalled = false; - void dbexit( ExitCode returnCode, const char *whyMsg ) { + void dbexit( ExitCode returnCode, const char *whyMsg , bool tryToGetLock ) { dbexitCalled = true; out() << "dbexit called" << endl; if ( whyMsg ) @@ -37,12 +37,12 @@ namespace mongo { out() << "exiting" << endl; ::exit( returnCode ); } - - bool inShutdown(){ + + bool inShutdown() { return dbexitCalled; } - void setupSignals(){ + void setupSignals() { // maybe should do SIGPIPE here, not sure } @@ -50,20 +50,20 @@ namespace mongo { return "in client only mode"; } - bool haveLocalShardingInfo( const string& ns ){ + bool haveLocalShardingInfo( const string& ns ) { return false; } - DBClientBase * createDirectClient(){ + DBClientBase * createDirectClient() { uassert( 10256 , "no createDirectClient in clientOnly" , 0 ); return 0; } - void Shard::getAllShards( vector<Shard>& all ){ + void Shard::getAllShards( vector<Shard>& all ) { assert(0); } - bool Shard::isAShard( const string& ident ){ + bool Shard::isAShardNode( const string& ident ) { assert(0); return false; } |