优化
This commit is contained in:
parent
a3a2f5b373
commit
88f28e6f6b
@ -207,7 +207,7 @@ public class SafeOrderExpirationListener {
|
|||||||
try {
|
try {
|
||||||
Object currentLockValue = redisUtil.get(RedisUtil.Database.DB2, lockKey);
|
Object currentLockValue = redisUtil.get(RedisUtil.Database.DB2, lockKey);
|
||||||
if (instanceId.equals(currentLockValue)) {
|
if (instanceId.equals(currentLockValue)) {
|
||||||
redisUtil.releaseDispatchLock(lockKey);
|
redisUtil.releaseLock(lockKey);
|
||||||
}
|
}
|
||||||
log.info("已释放redis分布式锁: lockKey={} ", lockKey);
|
log.info("已释放redis分布式锁: lockKey={} ", lockKey);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user