https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6942

--- Comment #46 from Mark Martinec <mark.marti...@ijs.si> ---
> After replacing Redis.pm, flushing the DB, restzart redis server
> I'm getting only autolearn=unavailable

> Jun 18 21:02:03.566 [39947] warn: bayes: bayes old token format 0 not
> supported, consider backup/restore or initialize a database
> Jun 18 21:02:03.568 [39947] dbg: bayes: _open_db(not yet open); Redis 1.961
> Jun 18 21:02:03.569 [39947] dbg: bayes: found bayes db version 3
> Jun 18 21:02:03.569 [39947] warn: bayes: bayes old token format 0 not
> supported, consider backup/restore or initialize a database

> what am I missing

That was intentional - I followed what Henrik suggested in comment 29:

  I think I'd prefer all-or-nothing transition. Perhaps lets do a
  v:TOKEN_FORMAT variable on newly initiated db. Right now if it's missing,
  keep the old code available for some time. Our main user AXB resets the
  database often anyway. :-)

So ... either ditch the existing database and restart redis server
(so that SA will initialize it to "v:TOKEN_FORMAT" = 2), or hack it:
  $ redis-cli set v:TOKEN_FORMAT 2

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

Reply via email to