From 0ecd7e5c9064ec080e3a0f198bf377d350246e8c Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 30 Jun 2021 23:49:38 +0000 Subject: [PATCH] Fixed an issue doing the set_roots repeatedly for the same set. Instead doing the per chunks. (#18314) (#18336) (cherry picked from commit a67d26a1e89ce8b9b65c07c14a4e9dfa4326b3e4) Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> --- 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 73b47ebfcd..3ad3af30ff 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -2976,7 +2976,7 @@ impl Blockstore { return Ok(()); } trace!("{:?}", chunk); - self.set_roots(&roots_to_fix)?; + self.set_roots(chunk)?; } } else { debug!(