share a concurrent visitor between workers in markLiveRefs
This commit is contained in:
parent
4b4104e400
commit
c1d8368fdc
@ -190,8 +190,9 @@ func (s *SplitStore) markLiveRefs(cids []cid.Cid) {
|
|||||||
startMark := time.Now()
|
startMark := time.Now()
|
||||||
|
|
||||||
count := new(int32)
|
count := new(int32)
|
||||||
|
visitor := newConcurrentVisitor()
|
||||||
walkObject := func(c cid.Cid) error {
|
walkObject := func(c cid.Cid) error {
|
||||||
return s.walkObjectIncomplete(c, newTmpVisitor(),
|
return s.walkObjectIncomplete(c, visitor,
|
||||||
func(c cid.Cid) error {
|
func(c cid.Cid) error {
|
||||||
if isUnitaryObject(c) {
|
if isUnitaryObject(c) {
|
||||||
return errStopWalk
|
return errStopWalk
|
||||||
|
Loading…
Reference in New Issue
Block a user