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:
Aliaksandr Valialkin 2024-07-15 23:38:16 +02:00
parent aa52d6cd9b
commit cbbc6e7141
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -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.