]> git.sur5r.net Git - openldap/commitdiff
ITS#4259 revert prev commit, fixed in alock.c instead.
authorHoward Chu <hyc@openldap.org>
Tue, 20 Dec 2005 00:48:15 +0000 (00:48 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 20 Dec 2005 00:48:15 +0000 (00:48 +0000)
servers/slapd/back-bdb/init.c

index c1a0bfcc624b27ade64b40ed96a81f127a9cb45d..989b467e375ee259091fcf2c2824eebc6193b08c 100644 (file)
@@ -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;