diff options
Diffstat (limited to 'client/clientOnly.cpp')
-rw-r--r-- | client/clientOnly.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/client/clientOnly.cpp b/client/clientOnly.cpp index f9fc570..e0f59a9 100644 --- a/client/clientOnly.cpp +++ b/client/clientOnly.cpp @@ -22,8 +22,6 @@ namespace mongo { - CmdLine cmdLine; - const char * curNs = "in client mode"; bool dbexitCalled = false; @@ -41,6 +39,10 @@ namespace mongo { return dbexitCalled; } + void setupSignals(){ + // maybe should do SIGPIPE here, not sure + } + string getDbContext() { return "in client only mode"; } @@ -48,6 +50,11 @@ namespace mongo { bool haveLocalShardingInfo( const string& ns ){ return false; } + + DBClientBase * createDirectClient(){ + uassert( 10256 , "no createDirectClient in clientOnly" , 0 ); + return 0; + } /* auto_ptr<CursorIterator> Helpers::find( const char *ns , BSONObj query , bool requireIndex ){ uassert( 10000 , "Helpers::find can't be used in client" , 0 ); |