summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-03-31 09:39:43 -0400
committerDwight <dmerriman@gmail.com>2008-03-31 09:39:43 -0400
commite21dfab42e71b4f12351f3a455da8e9f23fe7666 (patch)
tree2f35394d1ca2adc0184aceeaa365a753e54c0e9a
parentb9666b4db13c2abeb1414b5f730f3baf166b42eb (diff)
downloadmongo-e21dfab42e71b4f12351f3a455da8e9f23fe7666.tar.gz
v104 assert
-rw-r--r--db/db.cpp2
-rw-r--r--db/pdfile.h2
-rw-r--r--db/query.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/db/db.cpp b/db/db.cpp
index d2d73d9f67a..feb58e0b1f2 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -273,7 +273,7 @@ public:
};
void listen(int port) {
- cout << "db version: 103 mar2008 minilex" << endl;
+ cout << "db version: 104 mar2008 minilex" << endl;
pdfileInit();
testTheDb();
cout << curTimeMillis() % 10000 << " waiting for connections...\n" << endl;
diff --git a/db/pdfile.h b/db/pdfile.h
index 957df65dfe1..8030706c504 100644
--- a/db/pdfile.h
+++ b/db/pdfile.h
@@ -345,7 +345,7 @@ public:
}
PhysicalDataFile* getFile(int n) {
-// assert( name != "alleyinsider" );
+ assert(this);
if( n < 0 || n >= 10000 ) {
cout << "getFile(): n=" << n << endl;
diff --git a/db/query.cpp b/db/query.cpp
index 07f06f0d565..ea7a173237e 100644
--- a/db/query.cpp
+++ b/db/query.cpp
@@ -404,8 +404,8 @@ bool dbEval(JSObj& cmd, JSObjBuilder& result) {
Element args = cmd.findElement("args");
if( args.type() == Array ) {
JSObj eo = args.embeddedObject();
- cout << "args:" << eo.toString() << endl;
- cout << "code:\n" << code << endl;
+// cout << "args:" << eo.toString() << endl;
+// cout << "code:\n" << code << endl;
s.setObject("args", eo);
}