Commit 424aa4d0 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3497 fix test compilation problems refs[t:3497]

git-svn-id: file:///svn/toku/tokudb@31583 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0e4a1663
......@@ -12,7 +12,7 @@ static void test_del_rmw(DB_ENV *env, DB *db, uint32_t t1_flags, uint32_t t2_fla
int k = htonl(i); int v = i;
DBT key; dbt_init(&key, &k, sizeof k);
DBT val; dbt_init(&val, &v, sizeof v);
r = db->put(db, write_txn, &key, &val, DB_YESOVERWRITE); assert_zero(r);
r = db->put(db, write_txn, &key, &val, 0); assert_zero(r);
}
r = write_txn->commit(write_txn, 0); assert_zero(r);
}
......
......@@ -51,10 +51,10 @@ int test_main(int argc, char * const argv[]) {
r = db->put(db, txn1, &key, &val, DB_NOOVERWRITE); assert(r == DB_KEYEXIST);
r = db->put(db, txn2, &key, &val, DB_NOOVERWRITE); assert(r == DB_LOCK_NOTGRANTED);
r = db->put(db, txn1, &key, &val, DB_YESOVERWRITE); assert_zero(r);
r = db->put(db, txn2, &key, &val, DB_YESOVERWRITE); assert(r == DB_LOCK_NOTGRANTED);
r = db->put(db, txn1, &key, &val, 0); assert_zero(r);
r = db->put(db, txn2, &key, &val, 0); assert(r == DB_LOCK_NOTGRANTED);
r = txn1->commit(txn1, 0); assert_zero(r);
r = db->put(db, txn2, &key, &val, DB_YESOVERWRITE); assert_zero(r);
r = db->put(db, txn2, &key, &val, 0); assert_zero(r);
r = txn2->commit(txn2, 0); assert_zero(r);
r = db->close(db, 0); assert_zero(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