From c72217ee7aef973a82cc77bf489ddfdc98c4cd2d Mon Sep 17 00:00:00 2001 From: Dmitri Makarov Date: Tue, 15 Oct 2024 11:42:33 -0400 Subject: [PATCH] Fix comment --- accounts-db/src/accounts_db.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index d2a08d3879f1eb..de913245a0f36c 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -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>, }