ITS#5364, thread pool efficiency:

Use ldap_pvt_thread_pool_pausing(): pause check for slapd without locking.
This commit is contained in:
Hallvard Furuseth 2008-02-10 16:25:05 +00:00
parent 5fca6c19c8
commit 84c2a01c3b

View File

@ -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;
}