mirror of
https://github.com/restic/restic.git
synced 2026-10-07 11:07:11 +00:00
parallel: report progress for StreamTrees
This assigns an id to each tree root and then keeps track of how many tree loads (i.e. trees referenced for the first time) are pending per tree root. Once a tree root and its subtrees were fully processed there are no more pending tree loads and the tree root is reported as processed.
This commit is contained in:
1 parent
3d6a3e2555
commit
258ce0c1e5
4 files changed
+44
-18
No files matched your search
@@ -183,7 +183,7 @@ func copyTree(ctx context.Context, srcRepo restic.Repository, dstRepo restic.Rep
|
||||
visited := visitedTrees.Has(treeID)
|
||||
visitedTrees.Insert(treeID)
|
||||
return visited
|
||||
})
|
||||
}, nil)
|
||||
|
||||
wg.Go(func() error {
|
||||
// reused buffer
|
||||
|
||||
Reference in new issue
Block a user