提交 5dfe6fa7 编写于 作者: W william.liangf

修改zookeeper实现

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@68 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 2e9a1b4f
......@@ -82,7 +82,7 @@ public class ZookeeperRegistry implements Registry {
try {
String service = "/" + URL.encode(url.getServiceKey());
if (zookeeper.exists(service, false) == null) {
zookeeper.create(service, new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL);
zookeeper.create(service, new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
}
String provider = service + "/" + URL.encode(url.toIdentityString());
if (zookeeper.exists(provider, false) == null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册