From 9be7ada68d4f0ecf0efb2b4138a177ce8d56bb37 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang <93241502+yhchiang-sol@users.noreply.github.com> Date: Tue, 18 Oct 2022 23:50:22 -0700 Subject: [PATCH] Improve SlotColumn's code comment. (#28447) Improve SlotColumn's code comment to include how LedgerCleanupService manages the clean-up of a SlotColumn. --- ledger/src/blockstore_db.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ledger/src/blockstore_db.rs b/ledger/src/blockstore_db.rs index e25a13d3dd..27889532c9 100644 --- a/ledger/src/blockstore_db.rs +++ b/ledger/src/blockstore_db.rs @@ -627,6 +627,11 @@ pub trait ProtobufColumn: Column { /// SlotColumn is a trait for slot-based column families. Its index is /// essentially Slot (or more generally speaking, has a 1:1 mapping to Slot). +/// +/// The clean-up of any LedgerColumn that implements SlotColumn is managed by +/// [`LedgerCleanupService`], which will periodically deprecate and purge +/// oldest entries that are older than the latest root in order to maintain the +/// configured --limit-ledger-size under the validator argument. pub trait SlotColumn {} impl Column for T {