]> git.sur5r.net Git - openldap/commitdiff
Don't signal error if reindexing an already existing dn2id index
authorHoward Chu <hyc@openldap.org>
Tue, 11 Dec 2001 14:23:05 +0000 (14:23 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 11 Dec 2001 14:23:05 +0000 (14:23 +0000)
servers/slapd/back-ldbm/tools.c

index 39303e03bef4a434a0a8b35b6dab4c437311701e..a497be625b458a5a304fe634325026af956881af 100644 (file)
@@ -290,10 +290,8 @@ int ldbm_tool_entry_reindex(
                id, e->e_dn, 0 );
 #endif
 
-       rc = dn2id_add( be, e->e_ndn, e->e_id );
-       if( rc == 0 ) {
-               rc = index_entry_add( be, e, e->e_attrs );
-       }
+       dn2id_add( be, e->e_ndn, e->e_id );
+       rc = index_entry_add( be, e, e->e_attrs );
 
        entry_free( e );