From: Howard Chu Date: Tue, 13 May 2003 02:44:22 +0000 (+0000) Subject: Fix prev commit, must passthru precomputed scopes X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~143 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e8bbf129fd6bb18b853f99785bc460c45a9c540;p=openldap Fix prev commit, must passthru precomputed scopes --- diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index 1664212466..2219d52759 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -238,6 +238,11 @@ list_candidates( #endif for ( f = flist; f != NULL; f = f->f_next ) { + /* ignore precomputed scopes */ + if ( f->f_choice == SLAPD_FILTER_COMPUTED && + f->f_result == LDAP_SUCCESS ) { + continue; + } rc = bdb_filter_candidates( op, f, save, tmp, save+BDB_IDL_UM_SIZE );