Commit 57a54715 authored by Rich Prohaska's avatar Rich Prohaska

make DB_DUP and DB_NODUPDATA warnings not errors. addresses #189

git-svn-id: file:///svn/tokudb@1144 c7de825b-a66e-492c-adef-691d508d4ae1
parent 44df0067
......@@ -19,6 +19,12 @@ void db_put(DB *db, int k, int v, u_int32_t put_flags, int rexpect) {
DBT key, val;
int r = db->put(db, 0, dbt_init(&key, &k, sizeof k), dbt_init(&val, &v, sizeof v), put_flags);
if (r != rexpect) {
#if USE_TDB
if (r == EINVAL && put_flags == DB_NODUPDATA) {
printf("%s:%d:WARNING:tokdub does not support DB_NODUPDATA yet\n", __FILE__, __LINE__);
return;
}
#endif
printf("Expected %d, got %d\n", rexpect, r);
if (r != rexpect) errors = 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