]> git.sur5r.net Git - openldap/commitdiff
Remove slap_get_time optimization.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 13 Nov 2001 20:31:00 +0000 (20:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 13 Nov 2001 20:31:00 +0000 (20:31 +0000)
timelimit must be checked on first entry.

servers/slapd/back-ldbm/search.c

index 3f8d76a2ad9cd0566a1abc331777cb5d49a57fcf..1b95248dd6988e0cab6f1352edcbf37151977ebe 100644 (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;