From 90a60edef9d0a459f2d3587c65338476d19b2972 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 13 Nov 2001 20:31:00 +0000 Subject: [PATCH] Remove slap_get_time optimization. timelimit must be checked on first entry. --- servers/slapd/back-ldbm/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-ldbm/search.c b/servers/slapd/back-ldbm/search.c index 3f8d76a2ad..1b95248dd6 100644 --- a/servers/slapd/back-ldbm/search.c +++ b/servers/slapd/back-ldbm/search.c @@ -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; -- 2.39.5