You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/12/14 22:08:08 UTC

[Bug 4670] sa-learn: Fails on --restore using sdbm

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4670





------- Additional Comments From mkettler_sa@comcast.net  2005-12-14 22:08 -------
For what it's worth, I just ran into this myself.

It seems the fundamental problem is that sa-learn --restore is unaware of the
.dir and .pag files used by SDBM, and thinks it uses the same single-file format
that DB_File uses.

So it's trying to rename bayes_toks.convert<PID> -> bayes_toks and
bayes_seen.convert<PID> -> bayes_seen

Really it should be trying to rename:
bayes_toks.convert<PID>.dir -> bayes_toks.dir
bayes_toks.convert<PID>.pag -> bayes_toks.pag

bayes_seen.convert<PID>.dir -> bayes_seen.dir
bayes_seen.convert<PID>.pag -> bayes_seen.pag


As a short-term workaround, I was able to use sa-learn --restore and manually
rename the failed files to their correct names and everything worked fine from
there on. 

However, if you're going to do this manual move, make sure  to back up the
existing files and make no SA processes are running, as there's no locking or
mutexes here. If another SA process was to update the DB as you were copying,
corruption could easily result.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.