This is an automated email from the ASF dual-hosted git repository.

iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 300f9c9      #1830: dbindex support in redis (#1831)
300f9c9 is described below

commit 300f9c9fe1e4de8f14b494d8bf835b4e1ac6d5d6
Author: Ian Luo <[email protected]>
AuthorDate: Wed May 23 10:10:46 2018 +0800

        #1830: dbindex support in redis (#1831)
---
 .../main/java/com/alibaba/dubbo/registry/redis/RedisRegistry.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/dubbo-registry/dubbo-registry-redis/src/main/java/com/alibaba/dubbo/registry/redis/RedisRegistry.java
 
b/dubbo-registry/dubbo-registry-redis/src/main/java/com/alibaba/dubbo/registry/redis/RedisRegistry.java
index 6a99791..3c19f86 100644
--- 
a/dubbo-registry/dubbo-registry-redis/src/main/java/com/alibaba/dubbo/registry/redis/RedisRegistry.java
+++ 
b/dubbo-registry/dubbo-registry-redis/src/main/java/com/alibaba/dubbo/registry/redis/RedisRegistry.java
@@ -134,10 +134,12 @@ public class RedisRegistry extends FailbackRegistry {
             }
             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)));
             }
         }
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to