From: Kurt Zeilenga Date: Sun, 7 Feb 1999 17:57:50 +0000 (+0000) Subject: Really fix those reader/writer lock asserts... X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~618 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=587535a31065dbd1fc898652beee81c547e0274c;p=openldap Really fix those reader/writer lock asserts... --- diff --git a/servers/slapd/back-ldbm/cache.c b/servers/slapd/back-ldbm/cache.c index 8d3e84d7e9..46d8c655b6 100644 --- a/servers/slapd/back-ldbm/cache.c +++ b/servers/slapd/back-ldbm/cache.c @@ -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 */