mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05: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
1 changed files with 1 additions and 2 deletions
|
|
@ -743,8 +743,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
|
||||||
|
|
||||||
/* Every 64 entries, check for thread pool pause */
|
/* Every 64 entries, check for thread pool pause */
|
||||||
if ( ( ( rs->sr_nentries & 0x3f ) == 0x3f ) &&
|
if ( ( ( rs->sr_nentries & 0x3f ) == 0x3f ) &&
|
||||||
ldap_pvt_thread_pool_query( &connection_pool,
|
ldap_pvt_thread_pool_pausing( &connection_pool ) > 0 )
|
||||||
LDAP_PVT_THREAD_POOL_PARAM_PAUSING, &i ) == 0 && i )
|
|
||||||
{
|
{
|
||||||
return LDAP_BUSY;
|
return LDAP_BUSY;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue