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

Re: commit: ldap/doc/man/man8 slapindex.8

Hallvard B Furuseth wrote:
Howard Chu writes:
Hallvard B Furuseth wrote:
Does slapindex by default not delete old indexes
Right. It only adds new data by default.
In BerkeleyDB, you cannot use truncate mode with transactions. So in
the default mode (without -q), back-bdb/hdb silently removes the
truncate flag.  (Perhaps it should print an error and abort instead.)

Then the doc has been misleading all this time - "regenerating" the index sounds like cleaning away any junk too. So I suggest a louder change: Add a non-truncate option too, and warn if neither option is used.

That seems unnecessary. Nobody has had a problem with this behavior in 8 years.

And a note in back-bdb(5) that removing (and maybe re-adding)
an index with cn=config does not clean away old index data.

That may be warranted. Probably a lot easier than actually sweeping away the old data.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/