mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-19 14:30:57 +08:00
Don't set db_cachesize of memory pool is in use.
This commit is contained in:
parent
1dc9bd0991
commit
947b6422d5
@ -138,10 +138,15 @@ ldbm_open( char *name, int rw, int mode, int dbcachesize )
|
||||
DB_INFO dbinfo;
|
||||
|
||||
memset( &dbinfo, 0, sizeof( dbinfo ));
|
||||
dbinfo.db_cachesize = dbcachesize;
|
||||
|
||||
dbinfo.db_pagesize = DEFAULT_DB_PAGE_SIZE;
|
||||
dbinfo.db_malloc = ldbm_malloc;
|
||||
|
||||
if( ldbm_Env.mp_info == NULL ) {
|
||||
/* set a cachesize if we aren't using a memory pool */
|
||||
dbinfo.db_cachesize = dbcachesize;
|
||||
}
|
||||
|
||||
LDBM_LOCK;
|
||||
(void) db_open( name, DB_TYPE, rw, mode, &ldbm_Env, &dbinfo, &ret );
|
||||
LDBM_UNLOCK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user