]> git.sur5r.net Git - openldap/commitdiff
Fixed index file naming bug and added support for LDAP_MOD_SOFTADD.
authorJuan Gomez <gomez@openldap.org>
Wed, 26 May 1999 11:41:14 +0000 (11:41 +0000)
committerJuan Gomez <gomez@openldap.org>
Wed, 26 May 1999 11:41:14 +0000 (11:41 +0000)
servers/slapd/back-ldbm/index.c

index b16ddddd0ebcba61a9a387d41a7b418e4e568563..d6b5faa306212fb8954dd829d0b6b656e79913af 100644 (file)
@@ -70,7 +70,7 @@ index_add_mods(
                        rc = index_add_values( be, mod->mod_type,
                            mod->mod_bvalues, id );
                        break;
-
+               case LDAP_MOD_SOFTADD:  /* SOFTADD means index was there */
                case LDAP_MOD_DELETE:
                        rc = 0;
                        break;
@@ -230,7 +230,7 @@ index_add_values(
 
        Debug( LDAP_DEBUG_TRACE, "=> index_add_values( \"%s\", %ld )\n", type,
            id, 0 );
-
+       attr_normalize(type);
        attr_masks( be->be_private, type, &indexmask, &syntax );
        if ( indexmask == 0 ) {
                return( 0 );