Commit c575d560 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

According to the BDB documentation, the flags (e.g., DUPSORT) must match the file.

The actual BDB behavior seems to allow the flags to be 0.
TokuDB returns {{{EINVAL}}}, which seems correct.
So I changed the test to say it's OK.
Fixes #690.


git-svn-id: file:///svn/tokudb@3461 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7558cac0
......@@ -95,6 +95,7 @@ void test_abort3 (void) {
r=db->close(db, 0); CKERR(r);
r=db_create(&db, env, 0); CKERR(r);
r=db->set_flags(db, DB_DUPSORT);
r=env->txn_begin(env, 0, &txn, 0); assert(r==0);
r=db->open(db, txn, "foo.db", 0, DB_BTREE, 0, 0777); CKERR(r);
lookup(0, 0, 1);
......
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