修改zookeeper实现

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@68 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
william.liangf 2011-10-26 05:17:00 +00:00
parent 2e9a1b4f85
commit 5dfe6fa771
1 changed files with 1 additions and 1 deletions

View File

@ -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) {