From 544af751cbdbe31ab150f16ca413d2c1c6c97fc9 Mon Sep 17 00:00:00 2001 From: ZenGround0 <5515260+ZenGround0@users.noreply.github.com> Date: Tue, 28 Feb 2023 09:22:18 -0500 Subject: [PATCH] Fix the overzealous fix (#10366) Co-authored-by: zenground0 --- blockstore/splitstore/splitstore_compact.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blockstore/splitstore/splitstore_compact.go b/blockstore/splitstore/splitstore_compact.go index 4e82f55bc..cb24a3991 100644 --- a/blockstore/splitstore/splitstore_compact.go +++ b/blockstore/splitstore/splitstore_compact.go @@ -942,8 +942,8 @@ func (s *SplitStore) walkChain(ts *types.TipSet, inclState, inclMsgs abi.ChainEp if err != nil { return xerrors.Errorf("error computing cid reference to parent tipset") } - if err := fHot(pRef); err != nil { - return xerrors.Errorf("error marking parent tipset cid reference") + if err := s.walkObjectIncomplete(pRef, visitor, fHot, stopWalk); err != nil { + return xerrors.Errorf("error walking parent tipset cid reference") } // message are retained if within the inclMsgs boundary @@ -1001,8 +1001,8 @@ func (s *SplitStore) walkChain(ts *types.TipSet, inclState, inclMsgs abi.ChainEp if err != nil { return xerrors.Errorf("error computing cid reference to parent tipset") } - if err := fHot(hRef); err != nil { - return xerrors.Errorf("error marking parent tipset cid reference") + if err := s.walkObjectIncomplete(hRef, visitor, fHot, stopWalk); err != nil { + return xerrors.Errorf("error walking parent tipset cid reference") } for len(toWalk) > 0 {