summaryrefslogtreecommitdiff
path: root/client/clientOnly.cpp
diff options
context:
space:
mode:
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";
+ }
+}