mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
fix ordered indexing check
This commit is contained in:
parent
a3a9bb9bfa
commit
955253966b
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user