lib/storage: add missing increment for recentHourInvertedIndexSearchCalls

This commit is contained in:
Aliaksandr Valialkin 2019-11-13 15:13:29 +02:00
parent c57eb0ff83
commit 33895d4a0f

View file

@ -2198,9 +2198,9 @@ func (is *indexSearch) tryUpdatingMetricIDsForRecentHour(metricIDs *uint64set.Se
return false
}
atomic.AddUint64(&is.db.recentHourInvertedIndexSearchCalls, 1)
minHour := uint64(tr.MinTimestamp) / msecPerHour
maxHour := uint64(tr.MaxTimestamp) / msecPerHour
hmCurr := is.db.currHourMetricIDs.Load().(*hourMetricIDs)
if maxHour == hmCurr.hour && minHour == maxHour && hmCurr.isFull {
// The tr fits the current hour.