Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Oct 16, 2023
1 parent e7fc7ae commit 93a00a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ pub(crate) struct ShrinkStatsSub {
pub(crate) store_accounts_timing: StoreAccountsTiming,
pub(crate) rewrite_elapsed_us: u64,
pub(crate) create_and_insert_store_elapsed_us: u64,
pub(crate) number_unpackable_slots: usize,
pub(crate) count_unpackable_slots: usize,
}

impl ShrinkStatsSub {
Expand All @@ -2026,7 +2026,7 @@ impl ShrinkStatsSub {
self.create_and_insert_store_elapsed_us,
other.create_and_insert_store_elapsed_us
);
saturating_add_assign!(self.number_unpackable_slots, other.number_unpackable_slots);
saturating_add_assign!(self.count_unpackable_slots, other.count_unpackable_slots);
}
}

Expand All @@ -2042,7 +2042,7 @@ pub struct ShrinkStats {
handle_reclaims_elapsed: AtomicU64,
remove_old_stores_shrink_us: AtomicU64,
rewrite_elapsed: AtomicU64,
number_unpackable_slots: AtomicU64,
count_unpackable_slots: AtomicU64,
drop_storage_entries_elapsed: AtomicU64,
recycle_stores_write_elapsed: AtomicU64,
accounts_removed: AtomicUsize,
Expand Down Expand Up @@ -2222,9 +2222,9 @@ impl ShrinkAncientStats {
i64
),
(
"number_unpackable_slots",
"count_unpackable_slots",
self.shrink_stats
.number_unpackable_slots
.count_unpackable_slots
.swap(0, Ordering::Relaxed) as i64,
i64
),
Expand Down Expand Up @@ -4187,8 +4187,8 @@ impl AccountsDb {
.rewrite_elapsed
.fetch_add(stats_sub.rewrite_elapsed_us, Ordering::Relaxed);
shrink_stats
.number_unpackable_slots
.fetch_add(stats_sub.number_unpackable_slots as u64, Ordering::Relaxed);
.count_unpackable_slots
.fetch_add(stats_sub.count_unpackable_slots as u64, Ordering::Relaxed);
}

/// get stores for 'slot'
Expand Down

0 comments on commit 93a00a9

Please sign in to comment.