Make the isolation test not run under bdb (where it is broken)

git-svn-id: file:///svn/toku/tokudb@16606 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Bradley C. Kuszmaul 2013-04-16 23:58:56 -04:00 committed by Yoni Fogel
parent 7868fa8a66
commit 056b47bd0b
2 changed files with 5 additions and 4 deletions

View file

@ -124,6 +124,7 @@ BDB_DONTRUN_TESTS = \
recover-delboth-checkpoint \
recover-delboth-after-checkpoint \
filesize \
isolation \
#\ ends prev line
# checkpoint tests depend on this header file,

View file

@ -34,15 +34,15 @@ int test_main (int argc, char *argv[]) {
// X writes a value, and B tries to read it in uncommitted
{
DB_TXN *txnb;
r = env->txn_begin(env, txna, &txnb, DB_READ_UNCOMMITTED); CKERR(r);
// DB_TXN *txnb;
// r = env->txn_begin(env, txna, &txnb, DB_READ_UNCOMMITTED); CKERR(r);
{
DBT key,val;
r = db->put(db, txnx, dbt_init(&key, "x", 4), dbt_init(&val, "x", 4), 0); CKERR(r);
dbt_init_malloc(&val);
r = db->get(db, txnb, dbt_init(&key, "x", 4), &val, 0); CKERR(r);
r = db->get(db, txna, dbt_init(&key, "x", 4), &val, 0); CKERR(r);
}
r = txnb->commit(txnb, 0); CKERR(r);
// r = txnb->commit(txnb, 0); CKERR(r);
}
r = txna->commit(txna, 0); CKERR(r);
r = txnx->commit(txnx, 0); CKERR(r);