Commit 0f9406a2 authored by Rich Prohaska's avatar Rich Prohaska

get it working on bdb address #431

git-svn-id: file:///svn/tokudb@2379 c7de825b-a66e-492c-adef-691d508d4ae1
parent d6343066
...@@ -22,12 +22,15 @@ void test_txn_abort(int n) { ...@@ -22,12 +22,15 @@ void test_txn_abort(int n) {
if (r != 0) printf("%s:%d:%d:%s\n", __FILE__, __LINE__, r, db_strerror(r)); if (r != 0) printf("%s:%d:%d:%s\n", __FILE__, __LINE__, r, db_strerror(r));
assert(r == 0); assert(r == 0);
DB_TXN *txn; DB_TXN *txn = 0;
r = env->txn_begin(env, 0, &txn, 0); assert(r == 0); r = env->txn_begin(env, 0, &txn, 0); assert(r == 0);
DB *db; DB *db;
r = db_create(&db, env, 0); assert(r == 0); r = db_create(&db, env, 0); assert(r == 0);
r = db->open(db, txn, "test.db", 0, DB_BTREE, DB_CREATE, 0777); assert(r == 0); r = db->open(db, txn, "test.db", 0, DB_BTREE, DB_CREATE, 0777); assert(r == 0);
r = txn->commit(txn, 0); assert(r == 0);
r = env->txn_begin(env, 0, &txn, 0); assert(r == 0);
int i; int i;
for (i=0; i<n; i++) { for (i=0; i<n; i++) {
DBT key, val; DBT key, val;
......
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