From 7b9c0d919036f107ec2eb868459e913e10a6b79e Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Sun, 27 Nov 2016 01:58:23 +0200 Subject: [PATCH] [Minor] fann_redis: fix invalidation --- src/plugins/lua/fann_redis.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua index e73c95a32..beea591a5 100644 --- a/src/plugins/lua/fann_redis.lua +++ b/src/plugins/lua/fann_redis.lua @@ -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 -- 2.39.5