summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/bayes_expiry.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-18 11:28:47 +0100
committerGitHub <noreply@github.com>2018-04-18 11:28:47 +0100
commitfffb9838694671e4aacd6016465a9dbb944b6a0f (patch)
tree1cea5118033665381b087881d0476a45cefa52b3 /src/plugins/lua/bayes_expiry.lua
parent0eee0993c252d642f29ecf61741d2a5a3d855897 (diff)
parenta9ff59c94b8e77c6d3ccf45749c5878d9ddd5c79 (diff)
downloadrspamd-fffb9838694671e4aacd6016465a9dbb944b6a0f.tar.gz
rspamd-fffb9838694671e4aacd6016465a9dbb944b6a0f.zip
Merge pull request #2182 from moisseev/expiry
[Minor] Stop expiry if read_servers configured
Diffstat (limited to 'src/plugins/lua/bayes_expiry.lua')
-rw-r--r--src/plugins/lua/bayes_expiry.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/lua/bayes_expiry.lua b/src/plugins/lua/bayes_expiry.lua
index c73601e0b..e75a8527c 100644
--- a/src/plugins/lua/bayes_expiry.lua
+++ b/src/plugins/lua/bayes_expiry.lua
@@ -81,6 +81,7 @@ local function check_redis_classifier(cls, cfg)
end
end
end
+ if redis_params['read_servers'] ~= redis_params['write_servers'] then return end
table.insert(settings.classifiers, {
symbol_spam = symbol_spam,