Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6004,6 +6004,10 @@ impl AccountsDb {
// should skip handle_reclaims only when reclaims is empty. No need to
// check the elements of reclaims are empty.
if !reclaims.is_empty() {
let reclaims_len = reclaims.iter().map(|r| r.len()).sum::<usize>();
self.stats
.num_reclaims
.fetch_add(reclaims_len as u64, Ordering::Relaxed);
let purge_stats = PurgeStats::default();
let mut handle_reclaims_time = Measure::start("handle_reclaims");
self.handle_reclaims(
Expand Down Expand Up @@ -6215,6 +6219,11 @@ impl AccountsDb {
self.stats.store_total_data.swap(0, Ordering::Relaxed),
i64
),
(
"num_reclaims",
self.stats.num_reclaims.swap(0, Ordering::Relaxed),
i64
),
(
"read_only_accounts_cache_entries",
self.read_only_accounts_cache.cache_len(),
Expand Down
1 change: 1 addition & 0 deletions accounts-db/src/accounts_db/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub struct AccountsStats {
pub stakes_cache_check_and_store_us: AtomicU64,
pub store_num_accounts: AtomicU64,
pub store_total_data: AtomicU64,
pub num_reclaims: AtomicU64,
pub create_store_count: AtomicU64,
pub dropped_stores: AtomicU64,
pub handle_dead_keys_us: AtomicU64,
Expand Down
Loading