From: Kurt Zeilenga Date: Mon, 28 May 2001 20:16:21 +0000 (+0000) Subject: big mutex needs #ifdef HAVE_BERKELEY_DB_THREAD wrapper X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1378 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6892b449348b47ee60a7eccd3fcf8e92e2b9ef8;p=openldap big mutex needs #ifdef HAVE_BERKELEY_DB_THREAD wrapper --- diff --git a/libraries/libldbm/ldbm.c b/libraries/libldbm/ldbm.c index 4a00972497..86134afb9d 100644 --- a/libraries/libldbm/ldbm.c +++ b/libraries/libldbm/ldbm.c @@ -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; }