From 84c2a01c3b218d60d88d405039edabfd9f9060e9 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 10 Feb 2008 16:25:05 +0000 Subject: [PATCH] ITS#5364, thread pool efficiency: Use ldap_pvt_thread_pool_pausing(): pause check for slapd without locking. --- servers/slapd/result.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5