aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/bayes_expiry.lua
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-04-19 21:47:28 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-04-19 21:47:28 +0300
commit9eb294b1dc7e6a83d80152ab6040c13954bac6d4 (patch)
treebb0f6018cb7414e94b98a4dbd0cb0f3e6d2a3baa /src/plugins/lua/bayes_expiry.lua
parentcce0110d9ec635c47b8c557e3ecaa9c0936671a2 (diff)
downloadrspamd-9eb294b1dc7e6a83d80152ab6040c13954bac6d4.tar.gz
rspamd-9eb294b1dc7e6a83d80152ab6040c13954bac6d4.zip
[Minor] Keep cursor permanently
Diffstat (limited to 'src/plugins/lua/bayes_expiry.lua')
-rw-r--r--src/plugins/lua/bayes_expiry.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/bayes_expiry.lua b/src/plugins/lua/bayes_expiry.lua
index f50484d53..257503866 100644
--- a/src/plugins/lua/bayes_expiry.lua
+++ b/src/plugins/lua/bayes_expiry.lua
@@ -266,8 +266,8 @@ local expiry_script = [[
end
end
- redis.call('SETEX', cursor_key, ${expire_step} * 10, tostring(next))
- redis.call('SETEX', step_key, ${expire_step} * 10, tostring(step))
+ redis.call('SET', cursor_key, tostring(next))
+ redis.call('SET', step_key, tostring(step))
redis.call('DEL', lock_key)
return {next, step, nelts, extended, discriminated, mean, stddev, common, significant, infrequent, ttls_set}