mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
big mutex needs #ifdef HAVE_BERKELEY_DB_THREAD wrapper
This commit is contained in:
parent
d641cbf06f
commit
b6892b4493
1 changed files with 4 additions and 0 deletions
|
|
@ -106,7 +106,9 @@ int ldbm_initialize( const char* home )
|
|||
|
||||
if(ldbm_initialized++) return 1;
|
||||
|
||||
#ifndef HAVE_BERKELEY_DB_THREAD
|
||||
ldap_pvt_thread_mutex_init( &ldbm_big_mutex );
|
||||
#endif
|
||||
|
||||
#if DB_VERSION_MAJOR < 3
|
||||
ldbm_Env = calloc( 1, sizeof( DB_ENV ));
|
||||
|
|
@ -199,7 +201,9 @@ int ldbm_shutdown( void )
|
|||
db_appexit( ldbm_Env );
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_BERKELEY_DB_THREAD
|
||||
ldap_pvt_thread_mutex_destroy( &ldbm_big_mutex );
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue