From: Howard Chu Date: Tue, 20 Dec 2005 00:48:15 +0000 (+0000) Subject: ITS#4259 revert prev commit, fixed in alock.c instead. X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~552 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=684c01ed1f23ca1c7ead6867b2524973a2af4a0e;p=openldap ITS#4259 revert prev commit, fixed in alock.c instead. --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index c1a0bfcc62..989b467e37 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -594,13 +594,11 @@ bdb_db_close( BackendDB *be ) } } - if ( bdb->bi_alock_info.al_slot > 0 ) { - rc = alock_close( &bdb->bi_alock_info ); - if( rc != 0 ) { - Debug( LDAP_DEBUG_ANY, - "bdb_db_close: alock_close failed\n", 0, 0, 0 ); - return -1; - } + rc = alock_close( &bdb->bi_alock_info ); + if( rc != 0 ) { + Debug( LDAP_DEBUG_ANY, + "bdb_db_close: alock_close failed\n", 0, 0, 0 ); + return -1; } return 0;