fix: getReadHotRanges should be const function

This commit is contained in:
Meng Xu 2020-08-12 22:18:28 -07:00
parent 002cca5e58
commit ced4f8c49f
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ struct StorageServerMetrics {
// `StorageMetricsSampleTests.txt` after change made.
std::vector<ReadHotRangeWithMetrics> getReadHotRanges(KeyRangeRef shard, double readDensityRatio,
int64_t baseChunkSize,
int64_t minShardReadBandwidthPerKSeconds) {
int64_t minShardReadBandwidthPerKSeconds) const {
std::vector<ReadHotRangeWithMetrics> toReturn;
double shardSize = (double)byteSample.getEstimate(shard);