Permalink
Browse files

set keysize in v1 to 1KB

  • Loading branch information...
1 parent e94b9d4 commit 4a790c6ae42c5cea4426e486927df68ba87d06ab @dwight dwight committed Jul 5, 2011
Showing with 5 additions and 7 deletions.
  1. +1 −1 db/btree.h
  2. +1 −1 db/clientcursor.cpp
  3. +1 −3 dbtests/btreetests.cpp
  4. +1 −1 jstests/index_big1.js
  5. +1 −1 jstests/index_maxkey.js
View
@@ -261,7 +261,7 @@ namespace mongo {
typedef KeyV1Owned KeyOwned;
enum { BucketSize = 8192-16 }; // leave room for Record header
// largest key size we allow. note we very much need to support bigger keys (somehow) in the future.
- static const int KeyMax = 2560;
+ static const int KeyMax = 1024;
protected:
/** Parent bucket of this bucket, which isNull() for the root bucket. */
Loc parent;
View
@@ -172,7 +172,7 @@ namespace mongo {
log() << "perf warning: byLoc.size=" << bl.size() << " in aboutToDeleteBucket\n";
}
if( bl.size() == 0 ) {
- DEV log() << "debug warning: no cursors found in informAboutToDeleteBucket()" << endl;
+ DEV tlog() << "debug warning: no cursors found in informAboutToDeleteBucket()" << endl;
}
for ( CCByLoc::iterator i = bl.begin(); i != bl.end(); i++ )
i->second->_c->aboutToDeleteBucket(b);
View
@@ -44,8 +44,6 @@ namespace BtreeTests0 {
#undef BTVERSION
#define BTVERSION 1
namespace BtreeTests1 {
- // **************************************************************************
- // nTODO btree1 IS COMMENTED OUT
-// #include "btreetests.inl"
+ #include "btreetests.inl"
}
View
@@ -36,4 +36,4 @@ for ( i=0; i<N; i++ ) {
//print(flip);
//print(flip/1024);
-assert.eq( /*v0 index : 797*/2538, flip , "flip changed" );
+assert.eq( /*v0 index : 797*/1002, flip , "flip changed" );
View
@@ -19,7 +19,7 @@ for ( var indexVersion=0; indexVersion<=1; indexVersion++ ) {
assert.eq( 821 , sz );
}
else if ( indexVersion == 1 ) {
- assert.eq( 2561 , sz );
+ assert.eq( 1026 , sz );
}
break;
}

0 comments on commit 4a790c6

Please sign in to comment.