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 <pauloricard...@gmail.com> Authored: Fri Dec 1 10:08:30 2017 +1100 Committer: Paulo Motta <pa...@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-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org