hadoop-zookeeper-commits mailing list archives

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

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

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=800990&r1=800989&r2=800990&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Tue Aug  4 21:38:38 2009
@@ -44,6 +44,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:
   ZOOKEEPER-473. cleanup junit tests to eliminate false positives due to
   "socket reuse" and failure to close client (phunt via mahadev)

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java?rev=800990&r1=800989&r2=800990&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java Tue Aug 
4 21:38:38 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