[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: modrdn doesn't update indexes (ITS#2322)

The modrdn code uses ldbm_modify_internal(), which is in modify.c. All of the
index updating occurs there, which is why you won't find any of it in

My mistake, I forgot that we fixed slapindex in 2.0 as well. But to take
advantage of it, you have to delete your existing index files before running
slapindex. Keep the id2entry database, delete all the rest, then run
slapindex, and your dn2id index will be properly rebuilt.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of rolnas@takas.lt
> Sent: Thursday, February 20, 2003 10:55 PM
> To: openldap-its@OpenLDAP.org
> Subject: Re: modrdn doesn't update indexes (ITS#2322)
> In 2.0.26 updated back-ldbm reindexing - slapindex rebuilds
> dn2id index.
> Inspecting source file servers/slapd/back-ldbm/modrdn.c I
> don't found any
> line with index_entry_{add,del} for rdn attributes, that can change in
> this operation.
> On Fri, Feb 21, 2003 at 01:22:41AM +0000, Howard Chu wrote:
> > In OpenLDAP 2.0 the slapindex tool does not recreate the
> dn2id index. This
> > function was added to slapindex in OpenLDAP 2.1. I suggest
> you upgrade.
> >