]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 5 Mar 2004 15:40:37 +0000 (15:40 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 5 Mar 2004 15:40:37 +0000 (15:40 +0000)
servers/slapd/back-bdb/config.c
servers/slapd/back-bdb/init.c

index 8e2e93b3a889e838aefe2117dae4380b3c4a643b..16496267dd34f291f712eb799e423c27a23c4c22 100644 (file)
@@ -155,10 +155,6 @@ 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 ) {
index 63685bc635b105fa4303d46ab958fc68f38577bd..7be4e2d954beba352ed08a94095aa72839b120e1 100644 (file)
@@ -208,6 +208,10 @@ bdb_db_open( BackendDB *be )
        bdb->bi_dbenv->set_errcall( bdb->bi_dbenv, bdb_errcall );
        bdb->bi_dbenv->set_lk_detect( bdb->bi_dbenv, bdb->bi_lock_detect );
 
+       /* 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;
+
        if ( bdb->bi_idl_cache_max_size ) {
                bdb->bi_idl_tree = NULL;
                ldap_pvt_thread_rdwr_init( &bdb->bi_idl_tree_rwlock );