v2.6
This commit is contained in:
parent
1148cdbb2e
commit
f4ba9d0285
|
@ -33,7 +33,7 @@ public class RedisCacheSyncTimer {
|
||||||
PluginInfo pluginInfo = entry.getValue();
|
PluginInfo pluginInfo = entry.getValue();
|
||||||
String lockKey = LOCK_KEY + "_" + plugin.getName();
|
String lockKey = LOCK_KEY + "_" + plugin.getName();
|
||||||
IJedisGetter jedisGetter = pluginInfo.getJedisGetter();
|
IJedisGetter jedisGetter = pluginInfo.getJedisGetter();
|
||||||
try (Jedis jedis = jedisGetter.getRedis()) {·
|
try (Jedis jedis = jedisGetter.getRedis()) {
|
||||||
long lockResult = jedis.setnx(lockKey, "locked");
|
long lockResult = jedis.setnx(lockKey, "locked");
|
||||||
if (lockResult != 1) {
|
if (lockResult != 1) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user