From: Andrew Lewis Date: Sat, 26 Nov 2016 23:58:23 +0000 (+0200) Subject: [Minor] fann_redis: fix invalidation X-Git-Tag: 1.4.1~29^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1189%2Fhead;p=rspamd.git [Minor] fann_redis: fix invalidation --- 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