From 0641df92c5dd9d8d92944e9165ffe5f2d2c9c9ec Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 14 Apr 2011 23:14:02 +0000 Subject: [PATCH] Fix broke build; add amendment to hbase-3708 patch spotted by Ted Yu git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1092546 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java b/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java index 37f99a6df35..827073c816d 100644 --- a/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java +++ b/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java @@ -900,7 +900,7 @@ public class ZKUtil { throws KeeperException { try { ZooKeeper zk = zkw.getZooKeeper(); - if (zk.exists(znode, false) != null) { + if (zk.exists(znode, false) == null) { zk.create(znode, new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); }