[t:4046], fix test3529

git-svn-id: file:///svn/toku/tokudb@35697 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2013-04-16 23:59:51 -04:00 committed by Yoni Fogel
parent 053ca1a491
commit 30e9a33f4e

View file

@ -48,11 +48,13 @@ insert(int i, DB_TXN *txn)
snprintf(hello, sizeof(hello), "hello%04d", i);
snprintf(there, sizeof(there), "there%d", i);
DBT key, val;
if (db) {
int r=db->put(db, txn,
dbt_init(&key, hello, strlen(hello)+1),
dbt_init(&val, there, strlen(there)+1),
0);
CKERR(r);
}
}
static void delete (int i, DB_TXN *x) {
@ -77,6 +79,7 @@ do_nothing(DBT const *UU(a), DBT const *UU(b), void *UU(c)) {
static void
setup (void) {
db = NULL;
db_env_set_func_pread(my_pread);
int r;
r = system("rm -rf " ENVDIR); CKERR(r);