mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 15:41:24 -05:00
ITS#4259 don't try to alock_close if we never opened...
This commit is contained in:
parent
4ee2ae8f94
commit
5b7f102ad2
1 changed files with 7 additions and 5 deletions
|
|
@ -594,11 +594,13 @@ bdb_db_close( BackendDB *be )
|
|||
}
|
||||
}
|
||||
|
||||
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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue