/* lock detect configuration */
} else if ( strcasecmp( argv[0], "lockdetect" ) == 0 ) {
-#ifndef NO_THREADS
- if ( argc < 3 ) {
+ if ( argc < 2 ) {
fprintf( stderr, "%s: line %d: "
- "missing parameters in \"lockDetect <policy> <seconds>\" line\n",
+ "missing parameters in \"lockDetect <policy>\" line\n",
fname, lineno );
return 1;
}
} else {
fprintf( stderr, "%s: line %d: "
- "bad policy (%s) in \"lockDetect <policy> <seconds>\" line\n",
+ "bad policy (%s) in \"lockDetect <policy>\" line\n",
fname, lineno, argv[1] );
return 1;
}
- bdb->bi_lock_detect_seconds = strtol( argv[2], NULL, 0 );
- if( bdb->bi_lock_detect_seconds < 1 ) {
- fprintf( stderr, "%s: line %d: "
- "bad seconds (%s) in \"lockDetect <policy> <seconds>\" line\n",
- fname, lineno, argv[2] );
- return 1;
- }
-#else
- fprintf( stderr, "%s: line %d: "
- "NO THREADS: lockDetect line ignored\n",
- fname, lineno );
-#endif
-
/* mode with which to create new database files */
} else if ( strcasecmp( argv[0], "mode" ) == 0 ) {
if ( argc < 2 ) {
}
bdb->bi_dbenv_mode = strtol( argv[1], NULL, 0 );
-#if BDB_FILTER_INDICES
/* attribute to index */
} else if ( strcasecmp( argv[0], "index" ) == 0 ) {
int rc;
rc = bdb_attr_index_config( bdb, fname, lineno, argc - 1, &argv[1] );
if( rc != LDAP_SUCCESS ) return 1;
-#endif
/* size of the cache in entries */
- } else if ( strcasecmp( argv[0], "cachesize" ) == 0 ) {
+ } else if ( strcasecmp( argv[0], "cachesize" ) == 0 ) {
if ( argc < 2 ) {
fprintf( stderr,
"%s: line %d: missing size in \"cachesize <size>\" line\n",