Commit cdf0bf87 authored by Leif Walsh's avatar Leif Walsh

fix example compilation with bdb >=5

closes #14
parent 1a4569b4
......@@ -202,7 +202,7 @@ static void benchmark_setup (void) {
r = dbenv->set_lk_max(dbenv, items_per_transaction*2);
assert(r==0);
}
#elif DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR <= 7
#elif (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR <= 7) || DB_VERSION_MAJOR >= 5
if (dbenv->set_lk_max_locks) {
r = dbenv->set_lk_max_locks(dbenv, items_per_transaction*2);
assert(r==0);
......
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