Skip to content

Commit

Permalink
fix active_scans metric to not swap (solana-labs#26602)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored and Lcchy committed Jul 22, 2022
1 parent dbe1ddf commit d343575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2844,7 +2844,7 @@ impl AccountsDb {
),
(
"active_scans",
self.accounts_index.active_scans.swap(0, Ordering::Relaxed) as i64,
self.accounts_index.active_scans.load(Ordering::Relaxed) as i64,
i64
),
(
Expand Down

0 comments on commit d343575

Please sign in to comment.