From 587535a31065dbd1fc898652beee81c547e0274c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 7 Feb 1999 17:57:50 +0000 Subject: [PATCH] Really fix those reader/writer lock asserts... --- servers/slapd/back-ldbm/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5