Skip to content

Commit

Permalink
v1.17: Report lost_insertions metrics correctly (backport of #35191) (#…
Browse files Browse the repository at this point in the history
…35198)

Report lost_insertions metrics correctly (#35191)

(cherry picked from commit 4b77ee5)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
mergify[bot] and ryoqun authored Feb 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 04941ee commit 17eb75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program-runtime/src/loaded_programs.rs
Original file line number Diff line number Diff line change
@@ -178,7 +178,7 @@ impl Stats {
let evictions: u64 = self.evictions.values().sum();
let reloads = self.reloads.load(Ordering::Relaxed);
let insertions = self.insertions.load(Ordering::Relaxed);
let lost_insertions = self.insertions.load(Ordering::Relaxed);
let lost_insertions = self.lost_insertions.load(Ordering::Relaxed);
let replacements = self.replacements.load(Ordering::Relaxed);
let one_hit_wonders = self.one_hit_wonders.load(Ordering::Relaxed);
let prunes_orphan = self.prunes_orphan.load(Ordering::Relaxed);

0 comments on commit 17eb75a

Please sign in to comment.