mirror of
https://github.com/restic/restic.git
synced 2026-11-10 00:51:09 +00:00
Refactor backup pipeline
This commit is contained in:
1 parent
1516cb5996
commit
ba892e1ec2
9 files changed
+536
-105
No files matched your search
@@ -34,7 +34,12 @@ func walkTree(s Server, path string, id backend.ID, done chan struct{}, jobCh ch
|
||||
}
|
||||
walkTree(s, p, blob.Storage, done, jobCh)
|
||||
} else {
|
||||
jobCh <- WalkTreeJob{Path: p, Node: node}
|
||||
// load old blobs
|
||||
node.blobs, err = t.Map.Select(node.Content)
|
||||
if err != nil {
|
||||
debug.Log("walkTree", "unable to load bobs for %q (%v): %v", path, id.Str(), err)
|
||||
}
|
||||
jobCh <- WalkTreeJob{Path: p, Node: node, Error: err}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user