mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Don't set bdb yield with NO_THREADS
This commit is contained in:
parent
919274432b
commit
6fa0363d09
1 changed files with 5 additions and 0 deletions
|
|
@ -566,7 +566,12 @@ bdb_initialize(
|
|||
db_env_set_func_free( ber_memfree );
|
||||
db_env_set_func_malloc( (db_malloc *)ber_memalloc );
|
||||
db_env_set_func_realloc( (db_realloc *)ber_memrealloc );
|
||||
#ifndef NO_THREAD
|
||||
/* This is a no-op on a NO_THREAD build. Leave the default
|
||||
* alone so that BDB will sleep on interprocess conflicts.
|
||||
*/
|
||||
db_env_set_func_yield( ldap_pvt_thread_yield );
|
||||
#endif
|
||||
|
||||
{
|
||||
static char uuidbuf[ LDAP_LUTIL_UUIDSTR_BUFSIZE ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue