bf_compact: Invalid option 'db-transaction'
David Relson
relson at osagesoftware.com
Sun Sep 2 16:45:06 CEST 2007
On Wed, 15 Aug 2007 15:01:22 +0300
Mattias Wikstrom wrote:
> Hi!
>
> I'm having trouble running the bf_compact script that is included in
> the 1.1.5 release. The compact procedure is aborted by the following
> error message:
>
> $ bf_compact .bogofilter/
> Invalid option 'db-transaction'
>
> When examining the script it appears that bogoutil does not accept
> the parameter "--db-transaction=no". This is also confirmed when
> executing bogoutil:
>
> $ bogoutil --db-transaction=no
> Invalid option 'db-transaction'
>
> I have release 1.1.1 installed on another machine and there
> everything seems to be working fine. Is this is a bug in the current
> release and how can i fix it? Is it safe to remove the
> "--db-transaction=no" parameter for bogoutil in bf_compact?
>
> Best regards,
>
> Mattias Wikstrom
Hello Matthias,
Works fine for me! Comparing the source code of bogoutil-1.1.1 to
bogoutil-1.1.5 there have been _no_ changes in the processing of
the --db-transaction option.
What's the source of your bogoutil executable? It sounds like it was
configured _without_ transaction support.
When I run "bogoutil --version" it says:
bogoutil version 1.1.5
Database: Sleepycat Software: ... (...) AUTO-XA
Copyright (C) 2002-2007 David Relson, Matthias Andree
Copyright (C) 2002-2003 Gyepi Sam.
The AUTO-XA indicates that bogoutil will check the database and use
transactions (if appropriate) and not use them (when not appropriate).
The output of "bogoutil --help" lists the "--db-transaction" option.
A version of bogoutil built without transaction report will say:
bogoutil version 1.1.5
Database: Berkeley DB ...: (...) NON-TRANSACTIONAL
Note the "NON-TRANSACTIONAL".
Also the "--help" message will not include the "--db-transaction"
option.
HTH,
David
P.S. Sorry about the delayed response to your query.
More information about the Bogofilter
mailing list