mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Remove slap_get_time optimization.
timelimit must be checked on first entry.
This commit is contained in:
parent
525cd6f783
commit
90a60edef9
1 changed files with 1 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ searchit:
|
|||
ldap_pvt_thread_mutex_unlock( &op->o_abandonmutex );
|
||||
|
||||
/* check time limit */
|
||||
if ( tlimit != -1 && (ID_BLOCK_NIDS(candidates) > 2) && slap_get_time() > stoptime ) {
|
||||
if ( tlimit != -1 && slap_get_time() > stoptime ) {
|
||||
send_search_result( conn, op, LDAP_TIMELIMIT_EXCEEDED,
|
||||
NULL, NULL, v2refs, NULL, nentries );
|
||||
rc = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue