Fixed lber/io.c Cray T90 specific pointer arithmetic problem (ITS#325)
Fixed s_addr dereferencing (ITS#340)
Fixed ud strstr crash (ITS#328)
+ Fixed -lthread rdwr 2-writer bug (ITS#395)
Added TCP_NODELAY support
Changed slapd to apply ACL to lastmod attributes
Changed slapd.conf default referral
ldap_pvt_thread_mutex_lock( &rw->ltrw_mutex );
/* active threads? */
- if( rw->ltrw_r_active > 0 || rw->ltrw_w_active > 1) {
+ if( rw->ltrw_r_active > 0 || rw->ltrw_w_active > 0) {
ldap_pvt_thread_mutex_unlock( &rw->ltrw_mutex );
return LDAP_PVT_THREAD_EBUSY;
}
ldap_pvt_thread_mutex_lock( &rw->ltrw_mutex );
- if( rw->ltrw_w_active > 1 ) {
+ if( rw->ltrw_w_active > 0 ) {
/* writer is active */
rw->ltrw_r_wait++;
do {
ldap_pvt_thread_cond_wait(
&rw->ltrw_read, &rw->ltrw_mutex );
- } while( rw->ltrw_w_active > 1 );
+ } while( rw->ltrw_w_active > 0 );
rw->ltrw_r_wait--;
}
ldap_pvt_thread_mutex_lock( &rw->ltrw_mutex );
- if( rw->ltrw_w_active > 1) {
+ if( rw->ltrw_w_active > 0) {
ldap_pvt_thread_mutex_unlock( &rw->ltrw_mutex );
return LDAP_PVT_THREAD_EBUSY;
}