From 786a4201c06fc8fe686bf22ed1f28e15eaef7308 Mon Sep 17 00:00:00 2001 From: Frank Pei Date: Wed, 19 Aug 2020 14:30:10 +0800 Subject: [PATCH] Update RedisSentinelManager.java --- src/main/java/org/crazycake/shiro/RedisSentinelManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/crazycake/shiro/RedisSentinelManager.java b/src/main/java/org/crazycake/shiro/RedisSentinelManager.java index b8de88c4d..19acb0a8a 100644 --- a/src/main/java/org/crazycake/shiro/RedisSentinelManager.java +++ b/src/main/java/org/crazycake/shiro/RedisSentinelManager.java @@ -26,7 +26,7 @@ public class RedisSentinelManager extends WorkAloneRedisManager implements IRedi private int database = Protocol.DEFAULT_DATABASE; - private JedisSentinelPool jedisPool; + private volatile JedisSentinelPool jedisPool; @Override protected Jedis getJedis() {