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 MoonShiesty committed Aug 30, 2023
1 parent cabbd2a commit 8313527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/rawdb/freezer_table.go
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 8313527

Please sign in to comment.