mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5364, thread pool efficiency:
Use ldap_pvt_thread_pool_pausing(): pause check for slapd without locking.
This commit is contained in:
parent
5fca6c19c8
commit
84c2a01c3b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user