Skip to content

Commit

Permalink
fix(delayed): do not get lock twice fixes #2033
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Jul 15, 2021
1 parent b465011 commit 2800cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/moveToDelayed-3.lua
Expand Up @@ -26,7 +26,7 @@ if rcall("EXISTS", KEYS[3]) == 1 then
if ARGV[3] ~= "0" then
local lockKey = KEYS[3] .. ':lock'
local lock = rcall("GET", lockKey)
if rcall("GET", lockKey) ~= ARGV[3] then
if lock ~= ARGV[3] then
return -2
end
end
Expand Down

0 comments on commit 2800cf8

Please sign in to comment.