From fd85a0278857c8c263a984a4058cc293d89551a2 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 26 Jul 2023 09:42:36 +0300 Subject: [PATCH] Add debug load around loading segment headers cache from aux store --- crates/sc-consensus-subspace/src/archiver.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/sc-consensus-subspace/src/archiver.rs b/crates/sc-consensus-subspace/src/archiver.rs index 3b59a51a73..ca6cda1925 100644 --- a/crates/sc-consensus-subspace/src/archiver.rs +++ b/crates/sc-consensus-subspace/src/archiver.rs @@ -75,6 +75,10 @@ where let mut cache = Vec::with_capacity(Self::INITIAL_CACHE_CAPACITY); let mut next_key_index = 0; + debug!( + target: "subspace", + "Started loading segment headers into cache" + ); while let Some(segment_headers) = aux_store .get_aux(&Self::key(next_key_index))? @@ -86,6 +90,10 @@ where cache.extend(segment_headers); next_key_index += 1; } + debug!( + target: "subspace", + "Finished loading segment headers into cache" + ); Ok(Self { inner: Arc::new(SegmentHeadersStoreInner {