]> 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 37d4fd918d27989d4653d7a32a05a22829e17636..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 ) {
@@ -182,7 +191,6 @@ bdb_db_config(
                }
                if ( !( slapMode & SLAP_TOOL_MODE ) )
                        bdb->bi_idl_cache_max_size = atoi( argv[1] );
-
        } else if ( strcasecmp( argv[0], "sessionlog" ) == 0 ) {
                int se_id = 0, se_size = 0;
                struct slap_session_entry *sent;
@@ -200,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
@@ -215,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",