mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +03:00
fix build for bdb 4.5 addresses #133
git-svn-id: file:///svn/tokudb@1326 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
@@ -53,11 +53,12 @@ void setup (void) {
|
|||||||
|
|
||||||
dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS); assert(dbenv);
|
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);
|
r = dbenv->set_lk_max(ITEMS_PER_TRANSACTION*2);
|
||||||
assert(r==0);
|
assert(r==0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (cachesize) {
|
if (cachesize) {
|
||||||
r = dbenv->set_cachesize(cachesize / (1024*1024*1024), cachesize % (1024*1024*1024), 1);
|
r = dbenv->set_cachesize(cachesize / (1024*1024*1024), cachesize % (1024*1024*1024), 1);
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user