mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Really fix those reader/writer lock asserts...
This commit is contained in:
parent
7eaae29f6f
commit
587535a310
@ -213,9 +213,9 @@ cache_add_entry_lock(
|
||||
== 0 && cache->c_cursize > cache->c_maxsize ) {
|
||||
e = cache->c_lrutail;
|
||||
|
||||
/* XXX check for writer lock - should also check no readers pending */
|
||||
/* check for active readers/writer lock */
|
||||
#ifdef LDAP_DEBUG
|
||||
assert(ldap_pvt_thread_rdwr_writers( &e->e_rdwr ) == 1);
|
||||
assert(!ldap_pvt_thread_rdwr_active( &e->e_rdwr ));
|
||||
#endif
|
||||
|
||||
/* delete from cache and lru q */
|
||||
|
Loading…
Reference in New Issue
Block a user