Remove slap_get_time optimization.

timelimit must be checked on first entry.
This commit is contained in:
Kurt Zeilenga 2001-11-13 20:31:00 +00:00
parent 525cd6f783
commit 90a60edef9

View file

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