From 792e97790d941e73c54e542a1683f7e27e909893 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 29 Apr 2003 00:42:54 +0000 Subject: [PATCH] Handle SLAPD_FILTER_COMPUTED cases --- servers/slapd/back-bdb/filterindex.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index 0322c4ea08..ebfc607ecc 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -59,6 +59,17 @@ bdb_filter_candidates( switch ( f->f_choice ) { case SLAPD_FILTER_COMPUTED: + switch( f->f_result ) { + case LDAP_COMPARE_FALSE: + BDB_IDL_ZERO( ids ); + break; + case LDAP_COMPARE_TRUE: { + struct bdb_info *bdb = (struct bdb_info *)op->o_bd->be_private; + BDB_IDL_ALL( bdb, ids ); + } break; + case SLAPD_COMPARE_UNDEFINED: + break; + } break; case SLAPD_FILTER_DN_ONE: