Don't signal error if reindexing an already existing dn2id index

This commit is contained in:
Howard Chu 2001-12-11 14:23:05 +00:00
parent fcce9bb260
commit bfe6df6b20

View 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 );