mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/mergeset: properly update TableMetrics.TooLongItemsDroppedTotal inside Table.UpdateMetrics
Substitute '+=' with '=', since tooLongItemsTotal is global counter, which doesn't belong to the Table struct.
This is a follow-up for 69d244e6fb
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6297
This commit is contained in:
parent
aa52d6cd9b
commit
cbbc6e7141
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ func (tb *Table) UpdateMetrics(m *TableMetrics) {
|
|||
m.IndexBlocksCacheRequests = idxbCache.Requests()
|
||||
m.IndexBlocksCacheMisses = idxbCache.Misses()
|
||||
|
||||
m.TooLongItemsDroppedTotal += tooLongItemsTotal.Load()
|
||||
m.TooLongItemsDroppedTotal = tooLongItemsTotal.Load()
|
||||
}
|
||||
|
||||
// AddItems adds the given items to the tb.
|
||||
|
|
Loading…
Reference in a new issue