cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [3/6] git commit: Fix nodetool status regression
Date Wed, 16 Oct 2013 12:34:44 GMT
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 <brandonwilliams@apache.org>
Authored: Wed Oct 16 07:32:27 2013 -0500
Committer: Brandon Williams <brandonwilliams@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 :


Mime
View raw message