QDBM and transactions

Matthias Andree matthias.andree at gmx.de
Mon Nov 1 11:26:58 CET 2004


Stefan Bellon <sbellon at sbellon.de> writes:

>> 2. the program now checks if the output is already in B+tree format.
>
>>    Because the latter is just furniture inside the Hash format, dpopen
>>    will happily open a B+tree data base and dump B+tree pages rather
>>    than bogofilter wordlist records, nuking the user's data base.
>
> I thought about this as well but as this is only relevant if somebody
> moves from 0.93.0 to an older version I thought it wouldn't be that
> important. If you want, you can always corrupt your database anyway.
> But if you added the check: nice.

Well, db_open might want this check with reversed sign, too -- now that
you mention it. The problem is running the converter twice, for that
will totally trash the data base without reporting an error.

>> 3. the cmpkey function was split out into a separate file so we only
>>    have one central copy around.
>
> Yes, that's something I wanted to do as well becaus of my background[1]
> but as I wasn't sure whether you accepted my migration program I
> couldn't do it.

Just ask next time. :)

-- 
Matthias Andree



More information about the bogofilter-dev mailing list