From: Julio Sánchez Fernández Date: Fri, 9 Jul 1999 13:41:12 +0000 (+0000) Subject: Delete leftover test_filter comment. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c467a3307c16c6e9a430c4b32cb04aff69ae93d7;p=openldap Delete leftover test_filter comment. Adapt to work with the f_sub definition change reversal. --- diff --git a/servers/slapd/back-ldbm/filterindex.c b/servers/slapd/back-ldbm/filterindex.c index bcc1b0d0e0..c22a8ef860 100644 --- a/servers/slapd/back-ldbm/filterindex.c +++ b/servers/slapd/back-ldbm/filterindex.c @@ -17,13 +17,6 @@ static ID_BLOCK *list_candidates( Backend *be, Filter *flist, int ftype ); static ID_BLOCK *substring_candidates( Backend *be, Filter *f ); static ID_BLOCK *extensible_candidates( Backend *be, Mra *mra ); -/* - * test_filter - test a filter against a single entry. - * returns 0 filter matched - * -1 filter did not match - * >0 an ldap error code - */ - ID_BLOCK * index_candidates( Backend *be, @@ -302,12 +295,16 @@ substring_candidates( int i; AttributeType *at; ID_BLOCK *idl; + struct berval *substrings; Debug( LDAP_DEBUG_TRACE, "=> substring_candidates\n", 0, 0, 0 ); at = at_find( f->f_sub_type ); + substrings = make_substrs_berval( &f->f_sub ); idl = index_candidates( be, at, global_mr_approx, - &f->f_sub_value ); + substrings ); + + ber_bvfree( substrings ); Debug( LDAP_DEBUG_TRACE, "<= substring_candidates %ld\n", idl ? ID_BLOCK_NIDS(idl) : 0, 0, 0 );