From 49057266a651b0fedd7e37283a73abd0299ad192 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 21 Nov 2007 03:22:02 +0000 Subject: [PATCH] Tweak prev commit --- servers/slapd/bconfig.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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: { -- 2.39.5