From 9e8bbf129fd6bb18b853f99785bc460c45a9c540 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 13 May 2003 02:44:22 +0000 Subject: [PATCH] Fix prev commit, must passthru precomputed scopes --- servers/slapd/back-bdb/filterindex.c | 5 +++++ 1 file changed, 5 insertions(+) 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 );