]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/config.c
Move MSVC port to the Attic
[openldap] / servers / slapd / back-bdb / config.c
index 032472962c87fc958ca386243b2091376ea75623..725ad4418da26586fcfc99cc4dd3576ee2527c3f 100644 (file)
@@ -64,6 +64,15 @@ bdb_db_config(
        } else if ( strcasecmp( argv[0], "dbnosync" ) == 0 ) {
                bdb->bi_dbenv_xflags |= DB_TXN_NOSYNC;
 
+       /* slapadd/slapindex logging configuration */
+       } else if ( strcasecmp( argv[0], "fasttool" ) == 0 ) {
+               if ( slapMode & SLAP_TOOL_MODE )
+               bdb->bi_dbenv_xflags |= DB_TXN_NOT_DURABLE;
+
+       /* slapindex algorithm tuning */
+       } else if ( strcasecmp( argv[0], "linearindex" ) == 0 ) {
+               bdb->bi_linear_index = 1;
+
        /* transaction checkpoint configuration */
        } else if ( strcasecmp( argv[0], "checkpoint" ) == 0 ) {
                if ( argc < 3 ) {
@@ -172,7 +181,6 @@ 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 ) {
@@ -183,8 +191,6 @@ bdb_db_config(
                }
                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;
                struct slap_session_entry *sent;
@@ -202,7 +208,6 @@ bdb_db_config(
                }
 
                se_id = atoi( argv[1] );
-               se_size = atoi( argv[2] );
 
                if ( se_id < 0 || se_id > 999 ) {
 #ifdef NEW_LOGGING
@@ -217,7 +222,8 @@ bdb_db_config(
                        return( 1 );
                }
 
-               if ( se_size < 0 || se_size > 999 ) {
+               se_size = atoi( argv[2] );
+               if ( se_size < 0 ) {
 #ifdef NEW_LOGGING
                        LDAP_LOG( CONFIG, CRIT,
                                "%s: line %d: session log size %d is negative\n",