aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-27 14:37:33 +0000
committerGitHub <noreply@github.com>2016-11-27 14:37:33 +0000
commitbbc612a177a263756114cfc089d42068a675ffc3 (patch)
tree5b9e2f74b991492ae3cd69d571811a8261d46313
parentd89068d3c1e6d06cc426c089561c6abf2ab2c2cc (diff)
parent7b9c0d919036f107ec2eb868459e913e10a6b79e (diff)
downloadrspamd-bbc612a177a263756114cfc089d42068a675ffc3.tar.gz
rspamd-bbc612a177a263756114cfc089d42068a675ffc3.zip
Merge pull request #1189 from fatalbanana/f
[Minor] fann_redis: fix invalidation
-rw-r--r--src/plugins/lua/fann_redis.lua4
1 files 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