From c467a3307c16c6e9a430c4b32cb04aff69ae93d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Fri, 9 Jul 1999 13:41:12 +0000 Subject: [PATCH] Delete leftover test_filter comment. Adapt to work with the f_sub definition change reversal. --- servers/slapd/back-ldbm/filterindex.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 ); -- 2.39.5