]> git.sur5r.net Git - openldap/commitdiff
Tweak prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 21 Nov 2007 03:22:02 +0000 (03:22 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 21 Nov 2007 03:22:02 +0000 (03:22 +0000)
servers/slapd/bconfig.c

index b4a5b5849486bbd6e1f10b3ffef204b3ae768015..3e4927657201f2d53b281a6383e919ce38a04867 100644 (file)
@@ -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: {