DATAKV-41
+ allow indexes higher then 16
This commit is contained in:
@@ -287,7 +287,7 @@ public class JedisConnectionFactory implements InitializingBean, DisposableBean,
|
||||
* @param index database index
|
||||
*/
|
||||
public void setDatabase(int index) {
|
||||
Assert.isTrue(index >= 0 && index < 16, "invalid DB index (needs to be between 0 and 15)");
|
||||
Assert.isTrue(index >= 0, "invalid DB index (a positive index required)");
|
||||
this.dbIndex = index;
|
||||
}
|
||||
}
|
||||
@@ -231,7 +231,7 @@ public class JredisConnectionFactory implements InitializingBean, DisposableBean
|
||||
* @param index database index
|
||||
*/
|
||||
public void setDatabase(int index) {
|
||||
Assert.isTrue(index >= 0 && index < 16, "invalid DB index (needs to be between 0 and 15)");
|
||||
Assert.isTrue(index >= 0, "invalid DB index (a positive index required)");
|
||||
this.dbIndex = index;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user