fixed bug in CompactionManager.needsCleanup

Patch by Dmitrij Koniajev, reviewed by marcuse for CASSANDRA-6845.
This commit is contained in:
Dmitrij Koniajev 2014-03-12 17:05:31 +02:00 committed by Marcus Eriksson
parent 19444ea165
commit 05da045bbf
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
* Fix accounting in FileCacheService to allow re-using RAR (CASSANDRA-6838)
* Fix static counter columns (CASSANDRA-6827)
* Restore expiring->deleted (cell) compaction optimization (CASSANDRA-6844)
* Fix CompactionManager.needsCleanup (CASSANDRA-6845)
2.0.6
* Avoid race-prone second "scrub" of system keyspace (CASSANDRA-6797)

View File

@ -493,7 +493,7 @@ public class CompactionManager implements CompactionManagerMBean
return false;
}
if (i == (ownedRanges.size() - 1))
if (i == (sortedRanges.size() - 1))
{
// we're at the last range and we found a key beyond the end of the range
return true;