cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: push down logging code to where it's used
Date Tue, 26 Jul 2016 04:54:04 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk c8a365309 -> 0f6461849


push down logging code to where it's used


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

Branch: refs/heads/trunk
Commit: 0f6461849c0acf146a019094dce55249113678b5
Parents: c8a3653
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Tue Jul 26 00:53:47 2016 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Tue Jul 26 00:53:47 2016 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/JsonTransformer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0f646184/src/java/org/apache/cassandra/tools/JsonTransformer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/JsonTransformer.java b/src/java/org/apache/cassandra/tools/JsonTransformer.java
index 3b98595..72008ab 100644
--- a/src/java/org/apache/cassandra/tools/JsonTransformer.java
+++ b/src/java/org/apache/cassandra/tools/JsonTransformer.java
@@ -176,7 +176,6 @@ public final class JsonTransformer
 
     private void serializePartition(UnfilteredRowIterator partition)
     {
-        String key = metadata.getKeyValidator().getString(partition.partitionKey().getKey());
         try
         {
             json.writeStartObject();
@@ -223,6 +222,7 @@ public final class JsonTransformer
         }
         catch (IOException e)
         {
+            String key = metadata.getKeyValidator().getString(partition.partitionKey().getKey());
             logger.error("Fatal error parsing partition: {}", key, e);
         }
     }


Mime
View raw message