From: Hallvard Furuseth Date: Sun, 10 Feb 2008 16:25:05 +0000 (+0000) Subject: ITS#5364, thread pool efficiency: X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~175 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84c2a01c3b218d60d88d405039edabfd9f9060e9;p=openldap ITS#5364, thread pool efficiency: Use ldap_pvt_thread_pool_pausing(): pause check for slapd without locking. --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index d2302ebb6f..795c9272ca 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -743,8 +743,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs ) /* Every 64 entries, check for thread pool pause */ if ( ( ( rs->sr_nentries & 0x3f ) == 0x3f ) && - ldap_pvt_thread_pool_query( &connection_pool, - LDAP_PVT_THREAD_POOL_PARAM_PAUSING, &i ) == 0 && i ) + ldap_pvt_thread_pool_pausing( &connection_pool ) > 0 ) { return LDAP_BUSY; }