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 committed Jul 14, 2022
1 parent 2b7cc10 commit 4dea32e
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 4dea32e

Please sign in to comment.