hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1433274 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
Date Tue, 15 Jan 2013 03:21:55 GMT
Author: tedyu
Date: Tue Jan 15 03:21:54 2013
New Revision: 1433274

URL: http://svn.apache.org/viewvc?rev=1433274&view=rev
Log:
HBASE-7562 ZKUtil: missing "else condition" in multi processing (Himanshu)


Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java?rev=1433274&r1=1433273&r2=1433274&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java Tue Jan
15 03:21:54 2013
@@ -1428,19 +1428,19 @@ public class ZKUtil {
       } catch (InterruptedException ie) {
         zkw.interruptedException(ie);
       }
-    }
-
-    // run sequentially
-    for (ZKUtilOp op : ops) {
-      if (op instanceof CreateAndFailSilent) {
-        createAndFailSilent(zkw, (CreateAndFailSilent)op);
-      } else if (op instanceof DeleteNodeFailSilent) {
-        deleteNodeFailSilent(zkw, (DeleteNodeFailSilent)op);
-      } else if (op instanceof SetData) {
-        setData(zkw, (SetData)op);
-      } else {
-        throw new UnsupportedOperationException("Unexpected ZKUtilOp type: "
-          + op.getClass().getName());
+    } else {
+      // run sequentially
+      for (ZKUtilOp op : ops) {
+        if (op instanceof CreateAndFailSilent) {
+          createAndFailSilent(zkw, (CreateAndFailSilent) op);
+        } else if (op instanceof DeleteNodeFailSilent) {
+          deleteNodeFailSilent(zkw, (DeleteNodeFailSilent) op);
+        } else if (op instanceof SetData) {
+          setData(zkw, (SetData) op);
+        } else {
+          throw new UnsupportedOperationException("Unexpected ZKUtilOp type: "
+              + op.getClass().getName());
+        }
       }
     }
   }



Mime
View raw message