Re: [cvs] bogofilter/src bogotune.c,1.213,1.214
Matthias Andree <[email protected]>
| Newsgroups | gmane.mail.bogofilter.devel |
|---|---|
| Message-ID | <[email protected]> |
David Relson <[email protected]> writes: > Update of /cvsroot/bogofilter/bogofilter/src > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26959 > > Modified Files: > bogotune.c > Log Message: > Handle conflicting open requirements of TrivialDB and Berkeley DB 4.2 (with transactions). > > Index: bogotune.c > =================================================================== > RCS file: /cvsroot/bogofilter/bogofilter/src/bogotune.c,v > retrieving revision 1.213 > retrieving revision 1.214 > diff -u -d -r1.213 -r1.214 > --- bogotune.c 25 Jun 2005 13:16:52 -0000 1.213 > +++ bogotune.c 26 Jun 2005 23:48:50 -0000 1.214 > @@ -1750,7 +1750,12 @@ > > init_wordlist("word", ds_path, 0, WL_REGULAR); > > - open_wordlists(DS_READ); > + open_wordlists(DS_READ); /* open to get .ENCODING value */ > +#ifdef ENABLE_TDB_DATASTORE > + /* for TrivialDB, a double open fails, so the wordlist must be closed */ > + /* with Berkeley DB 4.2 with transactions, closing the wordlist causes a PANIC */ > + close_wordlists(false); > +#endif Something's wrong here - there shouldn't be driver-specific differences, and the code should be able to cope with a single opening of the wordlists. I have currently no interest in bogotune though. -- Matthias Andree _______________________________________________ Bogofilter-dev mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev