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

Re: (ITS#4242) slapindex fails to clean up DB after unclean shutdown



quanah@stanford.edu writes:
>> This works as designed. Since transaction logging is disabled when using
>> -q, it is not possible to recover the database to a consistent state
>> when these tools get interrupted. I.e., you are supposed to (A) never
>> interrupt a -q run, and (B) start over from scratch (rm *) when you do
>> interrupt the run.
>
> I had removed the bdb file being indexed (entryCSN.bdb).  I guess there is
> not much that can be done here though.

Maybe this deserves a little emphasis in the slapindex manpage.
Something like:

--- slapindex.8	2005-11-14 13:19:48.000000000 +0100
+++ -	2005-12-03 01:02:46.400102000 +0100
@@ -44,6 +44,8 @@
 .B \-q
 enable quick (fewer integrity checks) mode. Performs no consistency checks
-when writing the database. Improves indexing time, but if any errors or
-interruptions occur the database will most likely be unusable.
+when writing the database. Improves indexing time,
+.B however
+the database will most likely be unusable if any errors or
+interruptions occur.
 .TP
 .BI \-d " level"