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 shekhirin committed Jun 6, 2023
1 parent 37d90b9 commit af24328
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 af24328

Please sign in to comment.