DATAKV-41

+ allow indexes higher then 16
This commit is contained in:
Costin Leau
2011-03-14 23:02:15 +02:00
parent f3dfe2e2bb
commit 94e450991b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}