Commit 72f7d856 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5138 test-5138 didn't need to be nearly that large


git-svn-id: file:///svn/toku/tokudb@45258 c7de825b-a66e-492c-adef-691d508d4ae1
parent d3b55b4d
...@@ -37,13 +37,11 @@ int test_main(int argc, char * const argv[]) { ...@@ -37,13 +37,11 @@ int test_main(int argc, char * const argv[]) {
DBT key, val; DBT key, val;
unsigned int i; unsigned int i;
DBT *keyp = dbt_init(&key, &i, sizeof(i)); DBT *keyp = dbt_init(&key, &i, sizeof(i));
char *XCALLOC_N(4096, valbuf); DBT *valp = dbt_init(&val, &i, sizeof(i));
DBT *valp = dbt_init(&val, valbuf, 4096); for (i = 0; i < 1000; ++i) {
for (i = 0; i < 100000; ++i) {
r = db->put(db, txn, keyp, valp, 0); r = db->put(db, txn, keyp, valp, 0);
CKERR(r); CKERR(r);
} }
toku_free(valbuf);
r = txn->commit(txn, 0); r = txn->commit(txn, 0);
CKERR(r); CKERR(r);
......
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