Fixed bug where timeout, password, and database were not set in the
JedisSentinelPool overloaded contructor and hence not passed to JedisFactory.
This commit is contained in:
@@ -53,6 +53,9 @@ public class JedisSentinelPool extends Pool<Jedis> {
|
|||||||
public JedisSentinelPool(String masterName, Set<String> sentinels, final Config poolConfig, int timeout, final String password,
|
public JedisSentinelPool(String masterName, Set<String> sentinels, final Config poolConfig, int timeout, final String password,
|
||||||
final int database) {
|
final int database) {
|
||||||
this.poolConfig = poolConfig;
|
this.poolConfig = poolConfig;
|
||||||
|
this.timeout = timeout;
|
||||||
|
this.password = password;
|
||||||
|
this.database = database;
|
||||||
HostAndPort master = initSentinels(sentinels, masterName);
|
HostAndPort master = initSentinels(sentinels, masterName);
|
||||||
initPool(master);
|
initPool(master);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user