mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: remove unused function isTooBigTimeRangeForDateMetricIDs
This commit is contained in:
parent
fc90ebf43c
commit
e75d5f47c4
1 changed files with 0 additions and 6 deletions
|
@ -1266,12 +1266,6 @@ func (is *indexSearch) getTagFilterWithMinMetricIDsCountAdaptive(tfs *TagFilters
|
|||
|
||||
var errTooManyMetrics = errors.New("all the tag filters match too many metrics")
|
||||
|
||||
func isTooBigTimeRangeForDateMetricIDs(tr TimeRange) bool {
|
||||
minDate := uint64(tr.MinTimestamp) / msecPerDay
|
||||
maxDate := uint64(tr.MaxTimestamp) / msecPerDay
|
||||
return maxDate-minDate > 40
|
||||
}
|
||||
|
||||
const maxDaysForDateMetricIDs = 40
|
||||
|
||||
func (is *indexSearch) adjustMaxMetricsAdaptive(tr TimeRange, maxMetrics int) int {
|
||||
|
|
Loading…
Reference in a new issue