Skip to content

Commit

Permalink
core/rawdb: update freezertable read meter (ethereum#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 and mmsqe committed Dec 7, 2023
1 parent 79f6971 commit cac2e21
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 cac2e21

Please sign in to comment.