[389-devel] Please review: [Bug 667488] Cannot recreate numsubordinates index with db2index

Noriko Hosoi nhosoi at redhat.com
Fri Jan 7 22:12:05 UTC 2011


https://bugzilla.redhat.com/show_bug.cgi?id=667488

https://bugzilla.redhat.com/attachment.cgi?id=472302&action=diff
https://bugzilla.redhat.com/attachment.cgi?id=472302&action=edit

Description: Special thanks to Orion Poplawski(orion at cora.nwra.com)
for his in-depth analysis on the bug.  As he figured out, a helper
function add_op_attrs called from the reindex API ldbm_back_ldbm2index
removes the numsubordinates attribute-value pair from entries to
be reindexed, which makes reindexing numsubordinates fail.

The helper function add_op_attrs adds operational attributes parentid,
entryid and entrydn to entries as well as removes numsubordinates
from them before the entries are reindexed/imported. The add and
remove are necessary for the import, but not for the reindex since
these to-be-added operational attributes are already in entries
in the primary database id2entry.  And numsubordinates is necessary
when the attribute is reindexed.

This patch updates ldbm_back_ldbm2index (ldif2ldbm.c) not to call
add_op_attrs.




More information about the 389-devel mailing list