diff options
author | Dwight <dmerriman@gmail.com> | 2008-07-23 15:30:24 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-07-23 15:30:24 -0400 |
commit | 5f9bdedf081e33b43b616214e9dc1a45ae2fa9e6 (patch) | |
tree | ee97dfe8345fe6993d30ced9f801d1b34f0a6b91 /db/btree.cpp | |
parent | 38dbc34d454f692c1583a797790ef639cbc12a8c (diff) | |
download | mongo-5f9bdedf081e33b43b616214e9dc1a45ae2fa9e6.tar.gz |
minor logging and stuff. DEV mode off by default.
Diffstat (limited to 'db/btree.cpp')
-rw-r--r-- | db/btree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/btree.cpp b/db/btree.cpp index 4e98f22fde2..f9e8fe98199 100644 --- a/db/btree.cpp +++ b/db/btree.cpp @@ -114,7 +114,7 @@ void BucketBasics::assertValid(bool force) { wassert( n >= 0 && n < Size() ); wassert( emptySize >= 0 && emptySize < BucketSize ); wassert( topSize >= n && topSize <= BucketSize ); - if( 1 ) { + DEV { // slow: for( int i = 0; i < n-1; i++ ) { JSObj k1 = keyNode(i).key; @@ -640,7 +640,7 @@ DiskLoc BtreeBucket::advance(const DiskLoc& thisLoc, int& keyOfs, int direction, cout << " thisLoc: " << thisLoc.toString() << endl; cout << " keyOfs: " << keyOfs << " n:" << n << " direction: " << direction << endl; cout << bucketSummary() << endl; - assert( keyOfs >= 0 && keyOfs < n ); + assert(false); } int adj = direction < 0 ? 1 : 0; int ko = keyOfs + direction; |