You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ma...@apache.org on 2016/08/23 17:53:24 UTC
[2/3] cassandra git commit: remove the calculatedLastCompactedKeys
check
remove the calculatedLastCompactedKeys check
follow-up to CASSANDRA-6216
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/fe3f3da2
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/fe3f3da2
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/fe3f3da2
Branch: refs/heads/trunk
Commit: fe3f3da25912ab6da1dcad26946b74505674257b
Parents: 8bd6299
Author: Dikang Gu <di...@gmail.com>
Authored: Tue Aug 23 09:29:53 2016 -0700
Committer: Marcus Eriksson <ma...@apache.org>
Committed: Tue Aug 23 19:50:46 2016 +0200
----------------------------------------------------------------------
.../org/apache/cassandra/db/compaction/LeveledManifest.java | 6 ------
1 file changed, 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/fe3f3da2/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java b/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java
index cf3ae1a..f3f8935 100644
--- a/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java
+++ b/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java
@@ -67,7 +67,6 @@ public class LeveledManifest
@VisibleForTesting
protected final List<SSTableReader>[] generations;
private final PartitionPosition[] lastCompactedKeys;
- private volatile boolean calculatedLastCompactedKeys = false;
private final long maxSSTableSizeInBytes;
private final SizeTieredCompactionStrategyOptions options;
private final int [] compactionCounter;
@@ -338,11 +337,6 @@ public class LeveledManifest
// This isn't a magic wand -- if you are consistently writing too fast for LCS to keep
// up, you're still screwed. But if instead you have intermittent bursts of activity,
// it can help a lot.
- if (!calculatedLastCompactedKeys)
- {
- this.calculateLastCompactedKeys();
- }
-
for (int i = generations.length - 1; i > 0; i--)
{
List<SSTableReader> sstables = getLevel(i);