From 955253966b5e6a46491f838256ff2a526496631b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 5 Aug 2005 00:08:22 +0000 Subject: [PATCH] fix ordered indexing check --- servers/slapd/back-bdb/filterindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5