Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sentry/scripts/utils/locking/delete_lock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ local uuid = ARGV[1]

local value = redis.call('GET', key)
if not value then
return redis.error_reply(string.format("No lock at key exists at key: %s", key))
return redis.error_reply(string.format("NOLOCK No lock at key exists at key: %s", key))
elseif value ~= uuid then
return redis.error_reply(string.format("Lock at %s was set by %s, and cannot be released by %s.", key, value, uuid))
return redis.error_reply(string.format("LOCKHELD Lock at %s was set by %s, and cannot be released by %s.", key, value, uuid))
else
redis.call('DEL', key)
return redis.status_reply("OK")
Expand Down
Loading