Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: devel

[Bug 6962] New: Implement the missing dump_db_toks() to Redis bayes backend (used by sa-learn --dump)

 

 

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Jul 30, 2013, 11:01 AM

Post #1 of 1 (27 views)
Permalink
[Bug 6962] New: Implement the missing dump_db_toks() to Redis bayes backend (used by sa-learn --dump)

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

Bug ID: 6962
Summary: Implement the missing dump_db_toks() to Redis bayes
backend (used by sa-learn --dump)
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Plugins
Assignee: dev [at] spamassassin
Reporter: Mark.Martinec [at] ijs

The attached change adds a subroutine dump_db_toks() to the Redis
bayes backend, which so far was missing (reported by 'sa-learn --dump'
as 'not implemented').

It uses the same method for database traversal as the backup_database()
(using a redis KEYS command), which is problematic as it locks the
redis server for dozens of seconds and assumes that all fetched tokes
will fit into memory. As the redis server does not offer any better
traversal iterator method, this is the best we can do so far.
Still better then nothing.

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

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.