Fix build errors

This commit is contained in:
Kurt Zeilenga 2001-09-26 01:54:39 +00:00
parent 37d44620a5
commit 8c758b34f8
3 changed files with 13 additions and 7 deletions

View file

@ -106,13 +106,17 @@ unsigned bdb_idl_search( ID *ids, ID id )
#else
/* (reverse) linear search */
int i;
for( i=ids[0]; i; i-- ) {
if( id > ids[i] ) {
break;
{
int i;
for( i=ids[0]; i; i-- ) {
if( id > ids[i] ) {
break;
}
}
return i+1;
}
return i+1;
#endif
}

View file

@ -12,7 +12,7 @@
#include "slap.h"
#ifdef 0
#if 0
/* larger IDL sizes (which blow thread stacks) */
#define BDB_IDL_DB_SIZE (1<<16) /* 64K IDL on disk */
#define BDB_IDL_SIZE (1<<17) /* 128K IDL in memory */

View file

@ -83,7 +83,9 @@ static void *lock_detect_task( void *arg )
int rc;
sleep( bdb->bi_lock_detect_seconds );
rc = lock_detect( bdb->bi_dbenv, DB_LOCK_CONFLICT, bdb->bi_lock_detect, NULL );
rc = lock_detect( bdb->bi_dbenv, 0,
bdb->bi_lock_detect, NULL );
if( rc != 0 ) {
break;
}