From: Pierangelo Masarati Date: Fri, 5 Aug 2005 00:08:22 +0000 (+0000) Subject: fix ordered indexing check X-Git-Tag: OPENLDAP_AC_BP~94 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=955253966b5e6a46491f838256ff2a526496631b;p=openldap fix ordered indexing check --- diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index a8961d1bee..21431fec2d 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -154,7 +154,7 @@ bdb_filter_candidates( /* if no GE index, use pres */ Debug( LDAP_DEBUG_FILTER, "\tGE\n", 0, 0, 0 ); if( f->f_ava->aa_desc->ad_type->sat_ordering && - ( f->f_ava->aa_desc->ad_type->sat_ordering->smr_usage && SLAP_MR_ORDERED_INDEX ) ) + ( f->f_ava->aa_desc->ad_type->sat_ordering->smr_usage & SLAP_MR_ORDERED_INDEX ) ) rc = inequality_candidates( op, f->f_ava, ids, tmp, LDAP_FILTER_GE ); else rc = presence_candidates( op, f->f_ava->aa_desc, ids ); @@ -164,7 +164,7 @@ bdb_filter_candidates( /* if no LE index, use pres */ Debug( LDAP_DEBUG_FILTER, "\tLE\n", 0, 0, 0 ); if( f->f_ava->aa_desc->ad_type->sat_ordering && - ( f->f_ava->aa_desc->ad_type->sat_ordering->smr_usage && SLAP_MR_ORDERED_INDEX ) ) + ( f->f_ava->aa_desc->ad_type->sat_ordering->smr_usage & SLAP_MR_ORDERED_INDEX ) ) rc = inequality_candidates( op, f->f_ava, ids, tmp, LDAP_FILTER_LE ); else rc = presence_candidates( op, f->f_ava->aa_desc, ids );