mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Reworked Redis set (#8742)
This commit is contained in:
parent
80089c2856
commit
e31842eacc
4 changed files with 29 additions and 30 deletions
|
|
@ -305,7 +305,7 @@ local function _lock()
|
|||
for i = 1, max_lock_attempts do
|
||||
local value_set = ntop.setnxCache(lock_key, "1", max_lock_duration)
|
||||
|
||||
if value_set then
|
||||
if ntop.getCache(lock_key) == "1" then
|
||||
return true -- lock acquired
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue