]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import cache assert bug fix from -devel.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 14 Dec 1998 20:50:37 +0000 (20:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 14 Dec 1998 20:50:37 +0000 (20:50 +0000)
servers/slapd/back-ldbm/cache.c

index 1674432d69d37b94d78bc80d4290c17e22617a62..1ab9896cca3f59f32e8b2951a5ef23a9f7335b77 100644 (file)
@@ -200,7 +200,7 @@ cache_add_entry_lock(
 
                        /* XXX check for writer lock - should also check no readers pending */
 #ifdef LDAP_DEBUG
-                       assert(pthread_rdwr_wchk_np(&e->e_rdwr));
+                       assert(!pthread_rdwr_rwchk_np(&e->e_rdwr));
 #endif
 
                        /* delete from cache and lru q */