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_r187475375
  
    --- Diff: src/java/org/apache/cassandra/db/compaction/CompactionManager.java ---
    @@ -533,7 +530,7 @@ public AllSSTableOpStatus relocateSSTables(final ColumnFamilyStore
cfs, int jobs
                 logger.info("Partitioner does not support splitting");
                 return AllSSTableOpStatus.ABORTED;
             }
    -        final Collection<Range<Token>> r = StorageService.instance.getLocalRanges(cfs.keyspace.getName());
    +        final Collection<Range<Token>> r = StorageService.instance.getLocalReplicas(cfs.keyspace.getName()).asRangeSet();
    --- End diff --
    
    This is hardly even used. It just checks for isEmpty(). No need to unwrap.


---

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


Mime
View raw message