mirror of https://github.com/apache/cassandra
rename variable
Co-Authored-By: Lada Kesseler <23501754+lexler@users.noreply.github.com>
This commit is contained in:
parent
d58b230153
commit
9b0c8dac19
|
|
@ -3557,8 +3557,8 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
|
||||||
{
|
{
|
||||||
int minSamplesPerSplit = 4;
|
int minSamplesPerSplit = 4;
|
||||||
long maxSplitCount = numberOfKeys / minSamplesPerSplit + 1;
|
long maxSplitCount = numberOfKeys / minSamplesPerSplit + 1;
|
||||||
long calculatedSplitCount = totalRowCountEstimate / keysPerSplit;
|
long splitCount = totalRowCountEstimate / keysPerSplit;
|
||||||
int splitCountWithLimit = (int) Math.min(maxSplitCount, calculatedSplitCount);
|
int splitCountWithLimit = (int) Math.min(maxSplitCount, splitCount);
|
||||||
return Math.max(1, splitCountWithLimit);
|
return Math.max(1, splitCountWithLimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue