修改zookeeper实现
git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@68 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
parent
2e9a1b4f85
commit
5dfe6fa771
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue