Commit 217283bf authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4046], fix test3529

git-svn-id: file:///svn/toku/tokudb@35697 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0ae36693
...@@ -48,11 +48,13 @@ insert(int i, DB_TXN *txn) ...@@ -48,11 +48,13 @@ insert(int i, DB_TXN *txn)
snprintf(hello, sizeof(hello), "hello%04d", i); snprintf(hello, sizeof(hello), "hello%04d", i);
snprintf(there, sizeof(there), "there%d", i); snprintf(there, sizeof(there), "there%d", i);
DBT key, val; DBT key, val;
if (db) {
int r=db->put(db, txn, int r=db->put(db, txn,
dbt_init(&key, hello, strlen(hello)+1), dbt_init(&key, hello, strlen(hello)+1),
dbt_init(&val, there, strlen(there)+1), dbt_init(&val, there, strlen(there)+1),
0); 0);
CKERR(r); CKERR(r);
}
} }
static void delete (int i, DB_TXN *x) { 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)) { ...@@ -77,6 +79,7 @@ do_nothing(DBT const *UU(a), DBT const *UU(b), void *UU(c)) {
static void static void
setup (void) { setup (void) {
db = NULL;
db_env_set_func_pread(my_pread); db_env_set_func_pread(my_pread);
int r; int r;
r = system("rm -rf " ENVDIR); CKERR(r); r = system("rm -rf " ENVDIR); 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