cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aweisberg <...@git.apache.org>
Subject [GitHub] cassandra pull request #224: 14405 replicas
Date Wed, 16 May 2018 17:06:05 GMT
Github user aweisberg commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/224#discussion_r187475433
  
    --- Diff: src/java/org/apache/cassandra/db/compaction/CompactionManager.java ---
    @@ -468,7 +465,7 @@ public AllSSTableOpStatus performCleanup(final ColumnFamilyStore cfStore,
int jo
                 return AllSSTableOpStatus.ABORTED;
             }
             // if local ranges is empty, it means no data should remain
    -        final Collection<Range<Token>> ranges = StorageService.instance.getLocalRanges(keyspace.getName());
    +        final Collection<Range<Token>> ranges = StorageService.instance.getLocalReplicas(keyspace.getName()).asRangeSet();
    --- End diff --
    
    This could use a Collection2.transform version. It's just iterated.


---

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


Mime
View raw message