]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Really increase lock lifetime
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 27 Dec 2016 23:01:14 +0000 (23:01 +0000)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 4 Jan 2017 12:27:14 +0000 (14:27 +0200)
src/plugins/lua/fann_redis.lua

index 7438602082fc817fdf191eb9d05ad9ae97727c36..b61bc51ae24ba36212a55055656ceb218bfcef84 100644 (file)
@@ -727,7 +727,7 @@ local function train_fann(_, ev_base, elt)
               true, -- is write
               redis_lock_extend_cb, --callback
               'INCRBY', -- command
-              {fann_prefix .. elt, '30'}
+              {fann_prefix .. elt .. '_lock', '30'}
             )
           else
             return false -- do not plan any more updates