Commit 54039a67 authored by Yoni Fogel's avatar Yoni Fogel

[t:2350] Add BRT_INSERT_NO_OVERWRITE to leafentry tests

git-svn-id: file:///svn/toku/tokudb@17706 c7de825b-a66e-492c-adef-691d508d4ae1
parent 76340644
......@@ -576,6 +576,12 @@ test_le_empty_apply(void) {
generate_provpair_for(&ule_expected, &msg);
test_le_apply(&ule_initial, &msg, &ule_expected);
}
{
msg_init(&msg, BRT_INSERT_NO_OVERWRITE, msg_xids, &key, &val);
ULE_S ule_expected;
generate_provpair_for(&ule_expected, &msg);
test_le_apply(&ule_initial, &msg, &ule_expected);
}
}
}
}
......@@ -697,6 +703,17 @@ test_le_committed_apply(void) {
generate_both_for(&ule_expected, &val, &msg);
test_le_apply(&ule_initial, &msg, &ule_expected);
}
{
//INSERT_NO_OVERWRITE will not change a committed insert
ULE_S ule_expected = ule_initial;
u_int8_t valbuf2[MAX_SIZE];
u_int32_t valsize2 = random() % MAX_SIZE;
fillrandom(valbuf2, valsize2);
DBT val2;
toku_fill_dbt(&val2, valbuf2, valsize2);
msg_init(&msg, BRT_INSERT_NO_OVERWRITE, msg_xids, &key, &val2);
test_le_apply(&ule_initial, &msg, &ule_expected);
}
}
}
}
......
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