Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Oct 15, 2024
1 parent 2948f80 commit c72217e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1469,9 +1469,12 @@ pub struct AccountsDb {
/// (For R&D only; a feature-gate also exists to turn this on and make it a part of consensus.)
pub is_experimental_accumulator_hash_enabled: AtomicBool,

/// These are the ancient storages that could be valuable to shrink.
/// sorted by largest dead bytes to smallest
/// Members are Slot and capacity. If capacity is smaller, then that means the storage was already shrunk.
/// These are the ancient storages that could be valuable to
/// shrink, sorted by amount of dead bytes. The elements
/// are popped from the end of the vector, hence the sorting is
/// expected to be from the smallest dead bytes to the largest.
/// Members are Slot and capacity. If capacity is smaller, then
/// that means the storage was already shrunk.
pub(crate) best_ancient_slots_to_shrink: RwLock<Vec<(Slot, u64)>>,
}

Expand Down

0 comments on commit c72217e

Please sign in to comment.