Skip to content

Commit

Permalink
core/rawdb: update freezertable read meter (#26946)
Browse files Browse the repository at this point in the history
The meter for "for measuring the effective amount of data read" within the freezertable was never updated. This change remedies that. 
---------

Signed-off-by: jsvisa <delweng@gmail.com>
  • Loading branch information
jsvisa authored Mar 23, 2023
1 parent 20f8eb7 commit 7f3fc15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/rawdb/freezer_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,9 @@ func (t *freezerTable) retrieveItems(start, count, maxBytes uint64) ([]byte, []i
break
}
}

// Update metrics.
t.readMeter.Mark(int64(totalSize))
return output[:outputSize], sizes, nil
}

Expand Down

0 comments on commit 7f3fc15

Please sign in to comment.