]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/config.c
Entry caching. Based on ITS#1545 from Jong Hyuk Choi, jongchoi@us.ibm.com
[openldap] / servers / slapd / back-bdb / config.c
index f6ab841ba4adafbcb792be14e90a1f7af2256fc1..6de743254e60ca3ac8267d97aaaf55358069c699 100644 (file)
@@ -147,6 +147,16 @@ bdb_db_config(
                if( rc != LDAP_SUCCESS ) return 1;
 #endif
 
+       /* size of the cache in entries */
+         } else if ( strcasecmp( argv[0], "cachesize" ) == 0 ) {
+                 if ( argc < 2 ) {
+                         fprintf( stderr,
+                 "%s: line %d: missing size in \"cachesize <size>\" line\n",
+                             fname, lineno );
+                         return( 1 );
+                 }
+                 bdb->bi_cache.c_maxsize = atoi( argv[1] );
+
        /* anything else */
        } else {
                fprintf( stderr, "%s: line %d: "