summaryrefslogtreecommitdiff
path: root/db/btree.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-10-15 16:47:35 -0400
committerDwight <dmerriman@gmail.com>2009-10-15 16:47:35 -0400
commitf152047f195cc9a2e9a6d9d327f1097593e0ba11 (patch)
tree2a628584b0f27ea7ae2a544a531ec8f0c7860d07 /db/btree.cpp
parent326f612a9862661377b58c707112fa552ea81209 (diff)
downloadmongo-f152047f195cc9a2e9a6d9d327f1097593e0ba11.tar.gz
fix assert to use ours and thus make unit test pass
Diffstat (limited to 'db/btree.cpp')
-rw-r--r--db/btree.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/db/btree.cpp b/db/btree.cpp
index 66fda24fbe0..8288a3aaeca 100644
--- a/db/btree.cpp
+++ b/db/btree.cpp
@@ -20,7 +20,6 @@
#include "db.h"
#include "btree.h"
#include "pdfile.h"
-#include "../util/unittest.h"
#include "json.h"
#include "clientcursor.h"
#include "client.h"
@@ -38,8 +37,8 @@ namespace mongo {
const int KeyMax = BucketSize / 10;
extern int otherTraceLevel;
- int split_debug = 0;
- int insert_debug = 0;
+ const int split_debug = 0;
+ const int insert_debug = 0;
/* BucketBasics --------------------------------------------------- */
@@ -79,6 +78,12 @@ namespace mongo {
}
int BucketBasics::fullValidate(const DiskLoc& thisLoc, const BSONObj &order) {
+ {
+ bool f = false;
+ assert( f = true );
+ massert("assert is misdefined", f);
+ }
+
checkForInterrupt();
assertValid(order, true);
// if( bt_fv==0 )