From e64cd1ca4bf57616317a0902cfaf796d5b949707 Mon Sep 17 00:00:00 2001 From: Leif Walsh Date: Wed, 17 Apr 2013 00:01:22 -0400 Subject: [PATCH] refs #5666 fix keyrange-merge.tdb, needed more elements to work right git-svn-id: file:///svn/toku/tokudb@50982 c7de825b-a66e-492c-adef-691d508d4ae1 --- src/tests/CMakeLists.txt | 1 - src/tests/keyrange-merge.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index c6613cf2558..d57453d0775 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -591,7 +591,6 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS) add_test(ydb/keyrange-random-get1.tdb keyrange.tdb --get 1 --random_keys 1 --envdir dir.keyrange-random-get1.tdb) else () message(WARNING "TODO(leif): re-enable keyrange tests, see #5666") - declare_custom_tests(keyrange-merge.tdb) endif () add_test(ydb/keyrange-loader-get0.tdb keyrange.tdb --get 0 --loader 1 --envdir dir.keyrange-loader-get0.tdb) add_test(ydb/keyrange-loader-get1.tdb keyrange.tdb --get 1 --loader 1 --envdir dir.keyrange-loader-get1.tdb) diff --git a/src/tests/keyrange-merge.cc b/src/tests/keyrange-merge.cc index 3311102a37c..efea12e2abf 100644 --- a/src/tests/keyrange-merge.cc +++ b/src/tests/keyrange-merge.cc @@ -34,7 +34,7 @@ run_test(void) { // create a tree with 2 children uint32_t key_size = 9; - uint32_t val_size = db_basement_size / 4; + uint32_t val_size = db_basement_size / 32; size_t est_row_size_with_overhead = 8 + key_size + 4 + val_size + 4; // xid + key + key_len + val + val)len size_t rows_per_basement = db_basement_size / est_row_size_with_overhead;