Commit 5c21c7fc authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4394], hopefully fix issue

git-svn-id: file:///svn/toku/tokudb@38879 c7de825b-a66e-492c-adef-691d508d4ae1
parent 583de582
......@@ -95,8 +95,8 @@ doit (BOOL after_child_pin) {
toku_flusher_thread_set_callback(flusher_callback, &after_child_pin);
r = toku_brt_create_cachetable(&ct, 500*1024*1024, ZERO_LSN, NULL_LOGGER); assert(r==0);
unlink("foo.brt");
r = toku_open_brt("foo.brt", 1, &t, NODESIZE, NODESIZE/2, ct, null_txn, toku_builtin_compare_fun, null_db);
unlink("foo1.brt");
r = toku_open_brt("foo1.brt", 1, &t, NODESIZE, NODESIZE/2, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
toku_testsetup_initialize(); // must precede any other toku_testsetup calls
......@@ -183,11 +183,11 @@ doit (BOOL after_child_pin) {
// checkpointed is what we expect
//
r = system("cp foo.brt bar.brt ");
r = system("cp foo1.brt bar1.brt ");
assert_zero(r);
BRT c_brt;
r = toku_open_brt("bar.brt", 0, &c_brt, NODESIZE, NODESIZE/2, ct, null_txn, toku_builtin_compare_fun, null_db);
r = toku_open_brt("bar1.brt", 0, &c_brt, NODESIZE, NODESIZE/2, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
//
......
......@@ -86,12 +86,12 @@ doit (int state) {
toku_flusher_thread_set_callback(flusher_callback, &state);
r = toku_brt_create_cachetable(&ct, 500*1024*1024, ZERO_LSN, NULL_LOGGER); assert(r==0);
unlink("foo.brt");
unlink("bar.brt");
unlink("foo2.brt");
unlink("bar2.brt");
// note the basement node size is 5 times the node size
// this is done to avoid rebalancing when writing a leaf
// node to disk
r = toku_open_brt("foo.brt", 1, &t, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
r = toku_open_brt("foo2.brt", 1, &t, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
toku_testsetup_initialize(); // must precede any other toku_testsetup calls
......@@ -199,14 +199,14 @@ doit (int state) {
// checkpointed is what we expect
//
r = system("cp foo.brt bar.brt ");
r = system("cp foo2.brt bar2.brt ");
assert_zero(r);
BRT c_brt;
// note the basement node size is 5 times the node size
// this is done to avoid rebalancing when writing a leaf
// node to disk
r = toku_open_brt("bar.brt", 0, &c_brt, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
r = toku_open_brt("bar2.brt", 0, &c_brt, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
//
......
......@@ -86,12 +86,12 @@ doit (int state) {
toku_flusher_thread_set_callback(flusher_callback, &state);
r = toku_brt_create_cachetable(&ct, 500*1024*1024, ZERO_LSN, NULL_LOGGER); assert(r==0);
unlink("foo.brt");
unlink("bar.brt");
unlink("foo3.brt");
unlink("bar3.brt");
// note the basement node size is 5 times the node size
// this is done to avoid rebalancing when writing a leaf
// node to disk
r = toku_open_brt("foo.brt", 1, &t, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
r = toku_open_brt("foo3.brt", 1, &t, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
toku_testsetup_initialize(); // must precede any other toku_testsetup calls
......@@ -219,14 +219,14 @@ doit (int state) {
// checkpointed is what we expect
//
r = system("cp foo.brt bar.brt ");
r = system("cp foo3.brt bar3.brt ");
assert_zero(r);
BRT c_brt;
// note the basement node size is 5 times the node size
// this is done to avoid rebalancing when writing a leaf
// node to disk
r = toku_open_brt("bar.brt", 0, &c_brt, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
r = toku_open_brt("bar3.brt", 0, &c_brt, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
//
......
......@@ -95,12 +95,12 @@ doit (BOOL after_split) {
toku_flusher_thread_set_callback(flusher_callback, &after_split);
r = toku_brt_create_cachetable(&ct, 500*1024*1024, ZERO_LSN, NULL_LOGGER); assert(r==0);
unlink("foo.brt");
unlink("bar.brt");
unlink("foo4.brt");
unlink("bar4.brt");
// note the basement node size is 5 times the node size
// this is done to avoid rebalancing when writing a leaf
// node to disk
r = toku_open_brt("foo.brt", 1, &t, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
r = toku_open_brt("foo4.brt", 1, &t, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
toku_testsetup_initialize(); // must precede any other toku_testsetup calls
......@@ -195,14 +195,14 @@ doit (BOOL after_split) {
// checkpointed is what we expect
//
r = system("cp foo.brt bar.brt ");
r = system("cp foo4.brt bar4.brt ");
assert_zero(r);
BRT c_brt;
// note the basement node size is 5 times the node size
// this is done to avoid rebalancing when writing a leaf
// node to disk
r = toku_open_brt("bar.brt", 0, &c_brt, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
r = toku_open_brt("bar4.brt", 0, &c_brt, NODESIZE, 5*NODESIZE, ct, null_txn, toku_builtin_compare_fun, null_db);
assert(r==0);
//
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment