cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: simple reduction of 2n UUID.toString() calls
Date Thu, 04 Aug 2016 02:51:06 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 7dccb3137 -> f97e41049


simple reduction of 2n UUID.toString() calls


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

Branch: refs/heads/trunk
Commit: f97e410495d7bef19708ba088e56bea8f4c24206
Parents: 7dccb31
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Wed Aug 3 22:50:51 2016 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Wed Aug 3 22:50:51 2016 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/ActiveRepairService.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f97e4104/src/java/org/apache/cassandra/service/ActiveRepairService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/ActiveRepairService.java b/src/java/org/apache/cassandra/service/ActiveRepairService.java
index 1ef5dfe..435c7c8 100644
--- a/src/java/org/apache/cassandra/service/ActiveRepairService.java
+++ b/src/java/org/apache/cassandra/service/ActiveRepairService.java
@@ -389,10 +389,11 @@ public class ActiveRepairService implements IEndpointStateChangeSubscriber,
IFai
      */
     public synchronized ParentRepairSession removeParentRepairSession(UUID parentSessionId)
     {
+        String snapshotName = parentSessionId.toString();
         for (ColumnFamilyStore cfs : getParentRepairSession(parentSessionId).columnFamilyStores.values())
         {
-            if (cfs.snapshotExists(parentSessionId.toString()))
-                cfs.clearSnapshot(parentSessionId.toString());
+            if (cfs.snapshotExists(snapshotName))
+                cfs.clearSnapshot(snapshotName);
         }
         return parentRepairSessions.remove(parentSessionId);
     }


Mime
View raw message