2
2
mirror of https://github.com/octoleo/restic.git synced 2024-09-20 19:19:02 +00:00

Merge pull request #746 from restic/improve-fuse-memory

fuse: Improve memory usage
This commit is contained in:
Alexander Neumann 2017-01-24 14:13:01 +01:00
commit 439d3107f9

View File

@ -91,6 +91,11 @@ func (f *file) getBlobAt(i int) (blob []byte, err error) {
return f.blobs[i], nil
}
// release earlier blobs
for j := 0; j < i; j++ {
f.blobs[j] = nil
}
buf := restic.NewBlobBuffer(f.sizes[i])
n, err := f.repo.LoadBlob(restic.DataBlob, f.node.Content[i], buf)
if err != nil {