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(抢到后)