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: [email protected]
          Reporter: [email protected]

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.

Reply via email to