summaryrefslogtreecommitdiff
path: root/client/clientOnly.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-01-15 10:08:20 -0500
committerEliot Horowitz <eliot@10gen.com>2009-01-15 10:08:20 -0500
commit938c2c07a8032259527b8e9cbb6d0d12c7e8867a (patch)
tree2dd2907563557c78846a85b9c64c3ee1b6a67516 /client/clientOnly.cpp
parente5db6b0d3994030924cb9cc06c1717dfe5cfecaf (diff)
downloadmongo-938c2c07a8032259527b8e9cbb6d0d12c7e8867a.tar.gz
some cleaning so that client doesn't have to link against java and pcre
Diffstat (limited to 'client/clientOnly.cpp')
-rw-r--r--client/clientOnly.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/client/clientOnly.cpp b/client/clientOnly.cpp
new file mode 100644
index 00000000000..eb5fec052da
--- /dev/null
+++ b/client/clientOnly.cpp
@@ -0,0 +1,23 @@
+
+#include <iostream>
+
+using namespace std;
+
+namespace mongo {
+
+ const char * curNs = "in client mode";
+ // Database* database = 0;
+
+ void dbexit(int returnCode, const char *whyMsg ){
+ cout << "dbexit called" << endl;
+ if ( whyMsg )
+ cout << " b/c " << whyMsg << endl;
+ cout << "exiting" << endl;
+ exit( returnCode );
+ }
+
+
+ string getDbContext(){
+ return "in client only mode";
+ }
+}