adelapena commented on code in PR #1723:
URL: https://github.com/apache/cassandra/pull/1723#discussion_r972225852
##########
src/java/org/apache/cassandra/db/ColumnFamilyStore.java:
##########
@@ -1446,41 +1447,63 @@ public void apply(PartitionUpdate update,
UpdateTransaction indexer, OpOrder.Gro
@Override
public ShardBoundaries localRangeSplits(int shardCount)
{
- if (shardCount == 1 || !getPartitioner().splitter().isPresent() ||
SchemaConstants.isLocalSystemKeyspace(keyspace.getName()))
+ if (shardCount == 1 || !getPartitioner().splitter().isPresent())
return ShardBoundaries.NONE;
ShardBoundaries shardBoundaries = cachedShardBoundaries;
- if (shardBoundaries == null ||
- shardBoundaries.shardCount() != shardCount ||
- shardBoundaries.ringVersion !=
StorageService.instance.getTokenMetadata().getRingVersion())
- {
- DiskBoundaryManager.VersionedRangesAtEndpoint versionedLocalRanges
= DiskBoundaryManager.getVersionedLocalRanges(this);
- Set<Range<Token>> localRanges =
versionedLocalRanges.rangesAtEndpoint.ranges();
- List<Splitter.WeightedRange> weightedRanges;
- if (localRanges.isEmpty())
- weightedRanges = ImmutableList.of(new
Splitter.WeightedRange(1.0, new Range<>(getPartitioner().getMinimumToken(),
getPartitioner().getMaximumToken())));
- else
+
+ if (shardBoundaries == null ||
Review Comment:
This seems to have accidentally got an extra indentation level
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]