Fix the overzealous fix (#10366)

Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com>
This commit is contained in:
ZenGround0 2023-02-28 09:22:18 -05:00 committed by GitHub
parent 807610131a
commit 544af751cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -942,8 +942,8 @@ func (s *SplitStore) walkChain(ts *types.TipSet, inclState, inclMsgs abi.ChainEp
if err != nil { if err != nil {
return xerrors.Errorf("error computing cid reference to parent tipset") return xerrors.Errorf("error computing cid reference to parent tipset")
} }
if err := fHot(pRef); err != nil { if err := s.walkObjectIncomplete(pRef, visitor, fHot, stopWalk); err != nil {
return xerrors.Errorf("error marking parent tipset cid reference") return xerrors.Errorf("error walking parent tipset cid reference")
} }
// message are retained if within the inclMsgs boundary // 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 { if err != nil {
return xerrors.Errorf("error computing cid reference to parent tipset") return xerrors.Errorf("error computing cid reference to parent tipset")
} }
if err := fHot(hRef); err != nil { if err := s.walkObjectIncomplete(hRef, visitor, fHot, stopWalk); err != nil {
return xerrors.Errorf("error marking parent tipset cid reference") return xerrors.Errorf("error walking parent tipset cid reference")
} }
for len(toWalk) > 0 { for len(toWalk) > 0 {