summaryrefslogtreecommitdiff
path: root/ft/tests/ft-test4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ft/tests/ft-test4.cc')
-rw-r--r--ft/tests/ft-test4.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/ft/tests/ft-test4.cc b/ft/tests/ft-test4.cc
index 4d78f49347f..3ee7da9e0b0 100644
--- a/ft/tests/ft-test4.cc
+++ b/ft/tests/ft-test4.cc
@@ -21,7 +21,7 @@ static void test4 (int nodesize, int count) {
gettimeofday(&t0, 0);
unlink(fname);
- r = toku_create_cachetable(&ct, 0, ZERO_LSN, NULL_LOGGER); assert(r==0);
+ toku_cachetable_create(&ct, 0, ZERO_LSN, NULL_LOGGER);
r = toku_open_ft_handle(fname, 1, &t, nodesize, nodesize / 8, TOKU_DEFAULT_COMPRESSION_METHOD, ct, null_txn, toku_builtin_compare_fun); assert(r==0);
for (i=0; i<count; i++) {
char key[100],val[100];
@@ -29,12 +29,11 @@ static void test4 (int nodesize, int count) {
DBT k,v;
snprintf(key,100,"hello%d",rv);
snprintf(val,100,"there%d",i);
- r = toku_ft_insert(t, toku_fill_dbt(&k, key, 1+strlen(key)), toku_fill_dbt(&v, val, 1+strlen(val)), null_txn);
- assert(r==0);
+ toku_ft_insert(t, toku_fill_dbt(&k, key, 1+strlen(key)), toku_fill_dbt(&v, val, 1+strlen(val)), null_txn);
}
r = toku_verify_ft(t); assert(r==0);
r = toku_close_ft_handle_nolsn(t, 0); assert(r==0);
- r = toku_cachetable_close(&ct); assert(r==0);
+ toku_cachetable_close(&ct);
gettimeofday(&t1, 0);
{