You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2013/10/16 14:34:44 UTC

[3/6] git commit: Fix nodetool status regression

Fix nodetool status regression


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/8d319b06
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/8d319b06
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/8d319b06

Branch: refs/heads/trunk
Commit: 8d319b06a1086f31271c451f67a3d78b48aa0820
Parents: b33b53e
Author: Brandon Williams <br...@apache.org>
Authored: Wed Oct 16 07:32:27 2013 -0500
Committer: Brandon Williams <br...@apache.org>
Committed: Wed Oct 16 07:32:43 2013 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/NodeCmd.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/8d319b06/src/java/org/apache/cassandra/tools/NodeCmd.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/NodeCmd.java b/src/java/org/apache/cassandra/tools/NodeCmd.java
index 7e0bf67..87b114c 100644
--- a/src/java/org/apache/cassandra/tools/NodeCmd.java
+++ b/src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -1174,7 +1174,8 @@ public class NodeCmd
                     
 
                 case STATUS :
-                    nodeCmd.printClusterStatus(System.out, arguments[0]);
+                    if (arguments.length > 0) nodeCmd.printClusterStatus(System.out, arguments[0]);
+                    else                      nodeCmd.printClusterStatus(System.out, null);
                     break;
 
                 case DECOMMISSION :