mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix build errors
This commit is contained in:
parent
37d44620a5
commit
8c758b34f8
3 changed files with 13 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue