diff options
author | Dwight <dmerriman@gmail.com> | 2009-10-15 16:47:35 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-10-15 16:47:35 -0400 |
commit | f152047f195cc9a2e9a6d9d327f1097593e0ba11 (patch) | |
tree | 2a628584b0f27ea7ae2a544a531ec8f0c7860d07 /db/btree.cpp | |
parent | 326f612a9862661377b58c707112fa552ea81209 (diff) | |
download | mongo-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.cpp | 11 |
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 ) |