Browse Source

ZOOKEEPER-493. patch for command line setquota

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@800990 13f79535-47bb-0310-9956-ffa450edef68
Patrick D. Hunt 16 years ago
parent
commit
c11645f17c
2 changed files with 6 additions and 3 deletions
  1. 2 0
      CHANGES.txt
  2. 4 3
      src/java/main/org/apache/zookeeper/ZooKeeperMain.java

+ 2 - 0
CHANGES.txt

@@ -44,6 +44,8 @@ BUGFIXES:
   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:
   ZOOKEEPER-473. cleanup junit tests to eliminate false positives due to
   "socket reuse" and failure to close client (phunt via mahadev)

+ 4 - 3
src/java/main/org/apache/zookeeper/ZooKeeperMain.java

@@ -733,11 +733,12 @@ public class ZooKeeperMain {
             }
         } 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);