From: Howard Chu Date: Tue, 15 Apr 2008 22:17:50 +0000 (+0000) Subject: ITS#5469 check earlier for write waiters X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cfb478679f55530409c71cdd176ef76e136ad483;p=openldap ITS#5469 check earlier for write waiters --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index a42e7ace3f..c4b858dc3b 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1621,6 +1621,9 @@ connection_resched( Connection *conn ) { Operation *op; + if( conn->c_writewaiter ) + return 0; + if( conn->c_conn_state == SLAP_C_CLOSING ) { Debug( LDAP_DEBUG_TRACE, "connection_resched: " "attempting closing conn=%lu sd=%d\n", @@ -1629,7 +1632,7 @@ connection_resched( Connection *conn ) return 0; } - if( conn->c_conn_state != SLAP_C_ACTIVE || conn->c_writewaiter ) { + if( conn->c_conn_state != SLAP_C_ACTIVE ) { /* other states need different handling */ return 0; }