Skip to content

sync timer 唯一性问题 #1

@fankeke

Description

@fankeke

https://github.com/upyun/lua-resty-sync/blob/master/lib/resty/sync.lua#L324

if var and var ~= id then
release_lock(lock)
return true
end

没有看具体逻辑,但感觉这里应该要释放lock(抢到后)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions