From: Howard Chu Date: Fri, 5 Mar 2004 13:46:12 +0000 (+0000) Subject: Set IDL cache to 10x Entry cache by default X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~366 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c5d8c776ca05311c1d22ee36b3c59c7ccd4d6387;p=openldap Set IDL cache to 10x Entry cache by default --- diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index 37d4fd918d..8e2e93b3a8 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -155,6 +155,10 @@ bdb_db_config( } bdb->bi_cache.c_maxsize = atoi( argv[1] ); + /* default IDL cache to 10x entry cache */ + if ( bdb->bi_idl_cache_max_size == 0 ) + bdb->bi_idl_cache_max_size = 10 * bdb->bi_cache.c_maxsize; + /* depth of search stack cache in units of (IDL)s */ } else if ( strcasecmp( argv[0], "searchstack" ) == 0 ) { if ( argc < 2 ) { @@ -180,8 +184,7 @@ bdb_db_config( fname, lineno ); return( 1 ); } - if ( !( slapMode & SLAP_TOOL_MODE ) ) - bdb->bi_idl_cache_max_size = atoi( argv[1] ); + bdb->bi_idl_cache_max_size = atoi( argv[1] ); } else if ( strcasecmp( argv[0], "sessionlog" ) == 0 ) { int se_id = 0, se_size = 0;