From 9eb294b1dc7e6a83d80152ab6040c13954bac6d4 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Thu, 19 Apr 2018 21:47:28 +0300 Subject: [PATCH] [Minor] Keep cursor permanently --- src/plugins/lua/bayes_expiry.lua | 4 ++-- 1 file 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} -- 2.39.5