cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: fix nodetool clearsnapshot console message patch by dbrosius reviewed by jbellis for cassandra-5478
Date Sat, 25 May 2013 17:01:21 GMT
Updated Branches:
  refs/heads/cassandra-1.2 67e57a974 -> 7c9f17f95


fix nodetool clearsnapshot console message
patch by dbrosius reviewed by jbellis for cassandra-5478


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

Branch: refs/heads/cassandra-1.2
Commit: 7c9f17f9525c7736010be31f596888cccd398cfd
Parents: 67e57a9
Author: Dave Brosius <dbrosius@apache.org>
Authored: Sat May 25 13:00:05 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Sat May 25 13:00:05 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/NodeCmd.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/7c9f17f9/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 b2732a5..dce9dba 100644
--- a/src/java/org/apache/cassandra/tools/NodeCmd.java
+++ b/src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -1344,7 +1344,7 @@ public class NodeCmd
     private static void handleSnapshots(NodeCommand nc, String tag, String[] cmdArgs, String
columnFamily, NodeProbe probe) throws InterruptedException, IOException
     {
         String[] keyspaces = Arrays.copyOfRange(cmdArgs, 0, cmdArgs.length);
-        System.out.print("Requested snapshot for: ");
+        System.out.print("Requested " + ((nc == NodeCommand.SNAPSHOT) ? "creating" : "clearing")
+ " snapshot for: ");
         if ( keyspaces.length > 0 )
         {
           for (int i = 0; i < keyspaces.length; i++)


Mime
View raw message