diff options
author | Antonin Kral <a.kral@bobek.cz> | 2010-03-25 19:21:32 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2010-03-25 19:21:32 +0100 |
commit | 0ca01a91ae0a3562e54c226e7b9512feb2ea83d0 (patch) | |
tree | 2b3886e435b0217d6afd63a213b04d32bb4b4f6f /client/clientOnly.cpp | |
parent | a696359b248adef0cc8576fce3f473535e995136 (diff) | |
download | mongodb-0ca01a91ae0a3562e54c226e7b9512feb2ea83d0.tar.gz |
Imported Upstream version 1.4.0
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 ); |