hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ph...@apache.org
Subject svn commit: r800991 - in /hadoop/zookeeper/branches/branch-3.2: CHANGES.txt src/java/main/org/apache/zookeeper/ZooKeeperMain.java
Date Tue, 04 Aug 2009 21:38:57 GMT
Author: phunt
Date: Tue Aug  4 21:38:57 2009
New Revision: 800991

URL: http://svn.apache.org/viewvc?rev=800991&view=rev
Log:
ZOOKEEPER-493. patch for command line setquota

Modified:
    hadoop/zookeeper/branches/branch-3.2/CHANGES.txt
    hadoop/zookeeper/branches/branch-3.2/src/java/main/org/apache/zookeeper/ZooKeeperMain.java

Modified: hadoop/zookeeper/branches/branch-3.2/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/branches/branch-3.2/CHANGES.txt?rev=800991&r1=800990&r2=800991&view=diff
==============================================================================
--- hadoop/zookeeper/branches/branch-3.2/CHANGES.txt (original)
+++ hadoop/zookeeper/branches/branch-3.2/CHANGES.txt Tue Aug  4 21:38:57 2009
@@ -41,6 +41,8 @@
   ZOOKEEPER-447. zkServer.sh doesn't allow different config files to be
   specified on the command line (henry robinson via phunt)
 
+  ZOOKEEPER-493. patch for command line setquota (steve bendiola via phunt)
+
 IMPROVEMENTS:
 
 NEW FEATURES:

Modified: hadoop/zookeeper/branches/branch-3.2/src/java/main/org/apache/zookeeper/ZooKeeperMain.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/branches/branch-3.2/src/java/main/org/apache/zookeeper/ZooKeeperMain.java?rev=800991&r1=800990&r2=800991&view=diff
==============================================================================
--- hadoop/zookeeper/branches/branch-3.2/src/java/main/org/apache/zookeeper/ZooKeeperMain.java
(original)
+++ hadoop/zookeeper/branches/branch-3.2/src/java/main/org/apache/zookeeper/ZooKeeperMain.java
Tue Aug  4 21:38:57 2009
@@ -733,11 +733,12 @@
             }
         } else if (cmd.equals("setquota") && args.length >= 4) {
             String option = args[1];
+            String val = args[2];
             path = args[3];
             System.err.println("Comment: the parts are " +
-                    "option " + option + " path " +
-                    args[3] + " val " + args[2]);
-            String val = args[3];
+                               "option " + option +
+                               " val " + val +
+                               " path " + path);
             if ("-b".equals(option)) {
                 // we are setting the bytes quota
                 createQuota(zk, path, Long.parseLong(val), -1);



Mime
View raw message