Commit 1bb050e6 authored by Rich Prohaska's avatar Rich Prohaska

fix build for bdb 4.5 addresses #133

git-svn-id: file:///svn/tokudb@1326 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8d14a51c
......@@ -53,11 +53,12 @@ void setup (void) {
dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS); assert(dbenv);
#if DB_VERSION_MAJOR<4 || (DB_VERSION_MAJOR==4 && DB_VERSION_MINOR<=4)
{
r = dbenv->set_lk_max(ITEMS_PER_TRANSACTION*2);
assert(r==0);
}
#endif
if (cachesize) {
r = dbenv->set_cachesize(cachesize / (1024*1024*1024), cachesize % (1024*1024*1024), 1);
if (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