mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Fix unlock in prev commit
This commit is contained in:
parent
b4bcc325ee
commit
7aeb9bf621
@ -257,6 +257,7 @@ bdb_cache_return_entry_rw( struct bdb_info *bdb, Entry *e,
|
|||||||
EntryInfo *ei;
|
EntryInfo *ei;
|
||||||
int free = 0;
|
int free = 0;
|
||||||
|
|
||||||
|
bdb_cache_entry_db_unlock( bdb, lock );
|
||||||
ei = e->e_private;
|
ei = e->e_private;
|
||||||
bdb_cache_entryinfo_lock( ei );
|
bdb_cache_entryinfo_lock( ei );
|
||||||
if ( ei->bei_state & CACHE_ENTRY_NOT_CACHED ) {
|
if ( ei->bei_state & CACHE_ENTRY_NOT_CACHED ) {
|
||||||
@ -265,7 +266,6 @@ bdb_cache_return_entry_rw( struct bdb_info *bdb, Entry *e,
|
|||||||
free = 1;
|
free = 1;
|
||||||
}
|
}
|
||||||
bdb_cache_entryinfo_unlock( ei );
|
bdb_cache_entryinfo_unlock( ei );
|
||||||
bdb_cache_entry_db_unlock( bdb, lock );
|
|
||||||
if ( free ) {
|
if ( free ) {
|
||||||
e->e_private = NULL;
|
e->e_private = NULL;
|
||||||
bdb_entry_return( e );
|
bdb_entry_return( e );
|
||||||
|
Loading…
Reference in New Issue
Block a user