mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-18 06:30:27 +01:00
fix lint check
This commit is contained in:
parent
c605d64a95
commit
1531d757ea
@ -458,12 +458,9 @@ func canPostponeIndexCreation(currentTimestamp, rotationTimestamp, date, metricI
|
|||||||
// Calculate the probability of index creation for the given metricID
|
// Calculate the probability of index creation for the given metricID
|
||||||
pMin := uint64((float64(timeSinceRotation) / float64(d)) * (1 << 64))
|
pMin := uint64((float64(timeSinceRotation) / float64(d)) * (1 << 64))
|
||||||
p := fastHashUint64(metricID)
|
p := fastHashUint64(metricID)
|
||||||
if p < pMin {
|
// If p is smaller than pMin, means the time window for creating the index is over.
|
||||||
// The time window for creating the index is over
|
// Otherwise we still have some time for postponing index creation
|
||||||
return false
|
return p >= pMin
|
||||||
}
|
|
||||||
// We have some time for postponing index creation
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func marshalTagFiltersKey(dst []byte, tfss []*TagFilters, tr TimeRange, versioned bool) []byte {
|
func marshalTagFiltersKey(dst []byte, tfss []*TagFilters, tr TimeRange, versioned bool) []byte {
|
||||||
|
Loading…
Reference in New Issue
Block a user