From f875f2f6205c212d636b4f6ce848a17bc9110871 Mon Sep 17 00:00:00 2001 From: XiaoBei <1505929057@qq.com> Date: Fri, 3 Jan 2025 21:49:17 +0800 Subject: [PATCH] Update splitstore_compact.go --- blockstore/splitstore/splitstore_compact.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockstore/splitstore/splitstore_compact.go b/blockstore/splitstore/splitstore_compact.go index 78feb5bf6de..d3afdd25736 100644 --- a/blockstore/splitstore/splitstore_compact.go +++ b/blockstore/splitstore/splitstore_compact.go @@ -519,7 +519,7 @@ func (s *SplitStore) applyProtectors() error { // - We collect cold objects by iterating through the hotstore and checking the mark set; if an object is not marked, then it is candidate for purge. // - When running with a coldstore, we next copy all cold objects to the coldstore. // - At this point we are ready to begin purging: -// - We sort cold objects heaviest first, so as to never delete the consituents of a DAG before the DAG itself (which would leave dangling references) +// - We sort cold objects heaviest first, so as to never delete the constituents of a DAG before the DAG itself (which would leave dangling references) // - We delete in small batches taking a lock; each batch is checked again for marks, from the concurrent transactional mark, so as to never delete anything live // // - We then end the transaction and compact/gc the hotstore.