char *bv_val;
};
+#ifdef LDAP_DEBUG
extern int lber_debug;
+#endif
/*
* in bprint.c:
#define LDAP_OPT_SUCCESS 0
#define LDAP_OPT_ERROR (-1)
+#ifdef LDAP_DEBUG
extern int ldap_debug;
+#endif
#define LDAP_API_INFO_VERSION 1
typedef struct ldapapiinfo {
} else {
- if (ldap_debug&LDAP_DEBUG_ACL)
+#ifdef LDAP_DEBUG
+ if (ldap_debug & LDAP_DEBUG_ACL)
print_acl(a);
-
+#endif
if ( a->acl_access == NULL ) {
fprintf( stderr,
e = cache->c_lrutail;
/* XXX check for writer lock - should also check no readers pending */
+#ifdef LDAP_DEBUG
assert(pthread_rdwr_wchk_np(&e->e_rdwr));
+#endif
/* delete from cache and lru q */
rc = cache_delete_entry_internal( cache, e );
Debug( LDAP_DEBUG_TRACE, "====> cache_delete_entry:\n", 0, 0, 0 );
/* XXX check for writer lock - should also check no readers pending */
+#ifdef LDAP_DEBUG
assert(pthread_rdwr_wchk_np(&e->e_rdwr));
+#endif
/* set cache mutex */
pthread_mutex_lock( &cache->c_mutex );
e->e_dn, 0 );
/* XXX - check for writer lock - should also check no reader pending */
+#ifdef LDAP_DEBUG
assert(pthread_rdwr_wchk_np(&e->e_rdwr));
+#endif
#ifdef HAVE_BERKELEY_DB2
memset( &key, 0, sizeof( key ) );
Attribute *a, *next;
/* XXX check that no reader/writer locks exist */
+#ifdef LDAP_DEBUG
assert( !pthread_rdwr_wchk_np(&e->e_rdwr) &&
!pthread_rdwr_rchk_np(&e->e_rdwr) );
+#endif
if ( e->e_dn != NULL ) {
free( e->e_dn );