Polishing.
Prepare pool for Jedis as well. Introduce generics for Add ticket references to tests. See #3072
This commit is contained in:
@@ -730,6 +730,12 @@ public class JedisConnectionFactory
|
||||
|
||||
if (getUsePool() && !isRedisClusterAware()) {
|
||||
this.pool = createPool();
|
||||
|
||||
try {
|
||||
this.pool.preparePool();
|
||||
} catch (Exception ex) {
|
||||
throw new PoolException("Could not prepare the pool", ex);
|
||||
}
|
||||
}
|
||||
|
||||
if (isRedisClusterAware()) {
|
||||
|
||||
@@ -97,7 +97,6 @@ class LettucePoolingConnectionProvider implements LettuceConnectionProvider, Red
|
||||
|
||||
try {
|
||||
newPool.preparePool();
|
||||
|
||||
} catch (Exception ex) {
|
||||
throw new PoolException("Could not prepare the pool", ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user