mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
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:
parent
7868fa8a66
commit
056b47bd0b
2 changed files with 5 additions and 4 deletions
|
@ -124,6 +124,7 @@ BDB_DONTRUN_TESTS = \
|
||||||
recover-delboth-checkpoint \
|
recover-delboth-checkpoint \
|
||||||
recover-delboth-after-checkpoint \
|
recover-delboth-after-checkpoint \
|
||||||
filesize \
|
filesize \
|
||||||
|
isolation \
|
||||||
#\ ends prev line
|
#\ ends prev line
|
||||||
|
|
||||||
# checkpoint tests depend on this header file,
|
# checkpoint tests depend on this header file,
|
||||||
|
|
|
@ -34,15 +34,15 @@ int test_main (int argc, char *argv[]) {
|
||||||
|
|
||||||
// X writes a value, and B tries to read it in uncommitted
|
// X writes a value, and B tries to read it in uncommitted
|
||||||
{
|
{
|
||||||
DB_TXN *txnb;
|
// DB_TXN *txnb;
|
||||||
r = env->txn_begin(env, txna, &txnb, DB_READ_UNCOMMITTED); CKERR(r);
|
// r = env->txn_begin(env, txna, &txnb, DB_READ_UNCOMMITTED); CKERR(r);
|
||||||
{
|
{
|
||||||
DBT key,val;
|
DBT key,val;
|
||||||
r = db->put(db, txnx, dbt_init(&key, "x", 4), dbt_init(&val, "x", 4), 0); CKERR(r);
|
r = db->put(db, txnx, dbt_init(&key, "x", 4), dbt_init(&val, "x", 4), 0); CKERR(r);
|
||||||
dbt_init_malloc(&val);
|
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 = txna->commit(txna, 0); CKERR(r);
|
||||||
r = txnx->commit(txnx, 0); CKERR(r);
|
r = txnx->commit(txnx, 0); CKERR(r);
|
||||||
|
|
Loading…
Add table
Reference in a new issue