]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] fann_redis: fix invalidation 1189/head
authorAndrew Lewis <nerf@judo.za.org>
Sat, 26 Nov 2016 23:58:23 +0000 (01:58 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sun, 27 Nov 2016 00:02:09 +0000 (02:02 +0200)
src/plugins/lua/fann_redis.lua

index e73c95a325421cfdd7e9b96bbd90ca66e46d6364..beea591a55ec2bcbdfdc150d46c255f89dabd148 100644 (file)
@@ -535,14 +535,14 @@ local function train_fann(_, ev_base, elt)
           end
         end
         -- Invalidate ANN
-        rspamd_logger.infox('invalidate ANN %s: training data is invalid')
+        rspamd_logger.infox(rspamd_config, 'invalidate ANN %s: training data is invalid', elt)
         redis_make_request(ev_base,
           rspamd_config,
           nil,
           true, -- is write
           redis_invalidate_cb, --callback
           'EVALSHA', -- command
-          {redis_locked_invalidate_sha, 1, elt}
+          {redis_locked_invalidate_sha, 1, gen_fann_prefix(elt)}
         )
       else
         learning_spawned = true