From: Howard Chu Date: Wed, 21 Nov 2007 03:22:02 +0000 (+0000) Subject: Tweak prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~409 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=49057266a651b0fedd7e37283a73abd0299ad192;p=openldap Tweak prev commit --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index b4a5b58494..3e49276572 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -1510,10 +1510,14 @@ config_generic(ConfigArgs *c) { break; case CFG_IX_INTLEN: - if ( c->value_int < 4 ) - c->value_int = 4; + if ( !c->value_int ) { + slap_schema.si_mr_integerMatch->smr_usage &= ~SLAP_MR_ORDERED_INDEX; + } else { + if ( c->value_int < 4 ) + c->value_int = 4; + slap_schema.si_mr_integerMatch->smr_usage |= SLAP_MR_ORDERED_INDEX; + } index_intlen = c->value_int; - slap_schema.si_mr_integerMatch->smr_usage |= SLAP_MR_ORDERED_INDEX; break; case CFG_SORTVALS: {