mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Release cache locker on db close
This commit is contained in:
parent
214d3b26c1
commit
3fd4d04168
@ -448,7 +448,7 @@ bdb_db_open( BackendDB *be )
|
||||
return rc;
|
||||
}
|
||||
|
||||
bdb->bi_dbenv->lock_id(bdb->bi_dbenv, &bdb->bi_cache.c_locker);
|
||||
XLOCK_ID(bdb->bi_dbenv, &bdb->bi_cache.c_locker);
|
||||
|
||||
/* <insert> open (and create) index databases */
|
||||
return 0;
|
||||
@ -490,6 +490,8 @@ bdb_db_close( BackendDB *be )
|
||||
ldap_pvt_thread_rdwr_wunlock ( &bdb->bi_idl_tree_rwlock );
|
||||
}
|
||||
|
||||
XLOCK_ID_FREE(bdb->bi_dbenv, bdb->bi_cache.c_locker);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user