From a67d26a1e89ce8b9b65c07c14a4e9dfa4326b3e4 Mon Sep 17 00:00:00 2001 From: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> Date: Wed, 30 Jun 2021 13:29:16 -0700 Subject: [PATCH] Fixed an issue doing the set_roots repeatedly for the same set. Instead doing the per chunks. (#18314) --- ledger/src/blockstore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index b055aa4356..dd1a4bd43f 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -3093,7 +3093,7 @@ impl Blockstore { return Ok(()); } trace!("{:?}", chunk); - self.set_roots(&roots_to_fix)?; + self.set_roots(chunk)?; } } else { debug!(