mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Fix: if slapadd was used with an un-ordered LDIF file, we can't rely on
entries having ascending entry IDs. Always start from the beginning of the candidate list. (This should be fine in the general case as well, since the subtree index will also have refined the candidates.)
This commit is contained in:
parent
30de884223
commit
9953574b47
@ -295,11 +295,9 @@ dn2entry_retry:
|
||||
/* need normalized dn below */
|
||||
ber_dupbv( &realbase, &e->e_nname );
|
||||
|
||||
/* start cursor at base entry's id
|
||||
* FIXME: hack to make "" base work
|
||||
* FIXME: moddn needs to assign new ID for this to work
|
||||
/* start cursor at beginning of candidates.
|
||||
*/
|
||||
cursor = e->e_id == NOID ? 1 : e->e_id;
|
||||
cursor = 0;
|
||||
|
||||
if ( e != &slap_entry_root ) {
|
||||
bdb_cache_return_entry_r(bdb->bi_dbenv, &bdb->bi_cache, e, &lock);
|
||||
|
Loading…
Reference in New Issue
Block a user