hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1081428 - in /hbase/branches/0.90: CHANGES.txt src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
Date Mon, 14 Mar 2011 15:41:16 GMT
Author: stack
Date: Mon Mar 14 15:41:16 2011
New Revision: 1081428

URL: http://svn.apache.org/viewvc?rev=1081428&view=rev
Log:
HBASE-3633 ZKUtil::createSetData should only create a node when it nonexists

Modified:
    hbase/branches/0.90/CHANGES.txt
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java

Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1081428&r1=1081427&r2=1081428&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Mon Mar 14 15:41:16 2011
@@ -24,6 +24,8 @@ Release 0.90.2 - February 9th, 2011
    HBASE-3612  HBaseAdmin::isTableAvailable returns true when the table does
                not exit
    HBASE-3626  Update instructions in thrift demo files (Moaz Reyad via Stack)
+   HBASE-3633  ZKUtil::createSetData should only create a node when it nonexists
+               (Guanpeng Xu via Stack)
 
   IMPROVEMENTS
    HBASE-3542  MultiGet methods in Thrift

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java?rev=1081428&r1=1081427&r2=1081428&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java (original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java Mon Mar
14 15:41:16 2011
@@ -723,7 +723,7 @@ public class ZKUtil {
   public static void createSetData(final ZooKeeperWatcher zkw, final String znode,
       final byte [] data)
   throws KeeperException {
-    if (checkExists(zkw, znode) != -1) {
+    if (checkExists(zkw, znode) == -1) {
       ZKUtil.createWithParents(zkw, znode);
     }
     ZKUtil.setData(zkw, znode, data);



Mime
View raw message