DB corruption within minutes

Gyepi SAM gyepi at praxis-sw.com
Mon Jan 6 22:40:09 CET 2003


On Mon, Jan 06, 2003 at 05:52:42PM +0100, Matthias Andree wrote:
> Hi,
> 
> it takes some mere minutes to corrupt my goodlist.db with the
> bogofilter-nonMIME-CVS. I have no idea what's going on, the log output
> of my cron job is attached.
> 
> Do we use custom compare functions or the default DB compare functions?

We don't use custom comparision functions, just the default ones.

I experienced an odd corruption in my spamlist.db database a few days ago
where entries starting with letters between 'c' and 'x' disappeared.

In reviewing the BDB documentation, they do point out that the only way to avoid
data corruption is to:

1. Make a copy of the database, change it, then replace the original with the copy
2. Use transactions.

Option 1 is just plain stupid, so we're left with 2.

I have reviewed the code and see nothing obviously wrong, but I'll take another look
as soon as I am done with the mime stuff. The first step may be to add more debugging messages.

-Gyepi




More information about the bogofilter-dev mailing list