cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [2/4] cassandra git commit: ninja: fix bad #14079 commit (add removeUnsafe method used by AbstractCompactionStrategyTest)
Date Thu, 30 Nov 2017 23:19:58 GMT
ninja: fix bad #14079 commit (add removeUnsafe method used by AbstractCompactionStrategyTest)


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

Branch: refs/heads/trunk
Commit: d2e4ce48959bc56d9c366de20cd4c0f3c9bdf16b
Parents: c253ed4
Author: Paulo Motta <pauloricardomg@gmail.com>
Authored: Fri Dec 1 10:08:30 2017 +1100
Committer: Paulo Motta <paulo@apache.org>
Committed: Fri Dec 1 10:18:29 2017 +1100

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/lifecycle/Tracker.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d2e4ce48/src/java/org/apache/cassandra/db/lifecycle/Tracker.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/lifecycle/Tracker.java b/src/java/org/apache/cassandra/db/lifecycle/Tracker.java
index 6136f79..47efbce 100644
--- a/src/java/org/apache/cassandra/db/lifecycle/Tracker.java
+++ b/src/java/org/apache/cassandra/db/lifecycle/Tracker.java
@@ -505,4 +505,12 @@ public class Tracker
     {
         return view.get();
     }
+
+    @VisibleForTesting
+    public void removeUnsafe(Set<SSTableReader> toRemove)
+    {
+        Pair<View, View> result = apply(view -> {
+            return updateLiveSet(toRemove, emptySet()).apply(view);
+        });
+    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message