archiver: remove dead attribute from FutureNode

This commit is contained in:
Michael Eischer 2022-05-20 23:44:44 +02:00
parent 049f4c4144
commit 79321a195c
1 changed files with 1 additions and 4 deletions

View File

@ -295,8 +295,7 @@ type FutureNode struct {
snPath, target string
// kept to call the error callback function
absTarget string
fi os.FileInfo
fi os.FileInfo
node *restic.Node
stats ItemStats
@ -366,8 +365,6 @@ func (arch *Archiver) Save(ctx context.Context, snPath, target string, previous
return FutureNode{}, false, err
}
fn.absTarget = abstarget
// exclude files by path before running Lstat to reduce number of lstat calls
if !arch.SelectByName(abstarget) {
debug.Log("%v is excluded by path", target)