]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/config.c
Revert to original code
[openldap] / servers / slapd / back-bdb / config.c
index 16496267dd34f291f712eb799e423c27a23c4c22..032472962c87fc958ca386243b2091376ea75623 100644 (file)
@@ -172,6 +172,7 @@ bdb_db_config(
                        bdb->bi_search_stack_depth = MINIMUM_SEARCH_STACK_DEPTH;
                }
 
+#ifdef SLAP_IDL_CACHE
        /* size of the IDL cache in entries */
        } else if ( strcasecmp( argv[0], "idlcachesize" ) == 0 ) {
                if ( argc < 2 ) {
@@ -180,7 +181,9 @@ bdb_db_config(
                                fname, lineno );
                        return( 1 );
                }
-               bdb->bi_idl_cache_max_size = atoi( argv[1] );
+               if ( !( slapMode & SLAP_TOOL_MODE ) )
+                       bdb->bi_idl_cache_max_size = atoi( argv[1] );
+#endif
 
        } else if ( strcasecmp( argv[0], "sessionlog" ) == 0 ) {
                int se_id = 0, se_size = 0;