提交 531bd2d8 编写于 作者: N Nikita Koksharov

Fixed - RLock.unlock() results in ERR hash value if RedisLabs hosting used #2551

上级 cfe99d32
......@@ -344,7 +344,7 @@ public class RedissonLock extends RedissonExpirable implements RLock {
return commandExecutor.evalWriteAsync(getName(), LongCodec.INSTANCE, command,
"if (redis.call('exists', KEYS[1]) == 0) then " +
"redis.call('hset', KEYS[1], ARGV[2], 1); " +
"redis.call('hincrby', KEYS[1], ARGV[2], 1); " +
"redis.call('pexpire', KEYS[1], ARGV[1]); " +
"return nil; " +
"end; " +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册