Skip to content

Commit

Permalink
apache#1830: dbindex support in redis (apache#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
beiwei30 authored May 23, 2018
1 parent 1efa9d4 commit 55461ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ public RedisRegistry(URL url) {
}
if (StringUtils.isEmpty(password)) {
this.jedisPools.put(address, new JedisPool(config, host, port,
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT)));
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), null,
url.getParameter("db.index", 0)));
} else {
this.jedisPools.put(address, new JedisPool(config, host, port,
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), password));
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), password,
url.getParameter("db.index", 0)));
}
}

Expand Down

0 comments on commit 55461ab

Please sign in to comment.