lib/db: Allow put partial FileInfo without blocks (ref #6353)

This commit is contained in:
Jakob Borg 2020-02-22 17:44:20 +01:00
parent 32e12abb43
commit 10cb14fcb8
1 changed files with 0 additions and 3 deletions

View File

@ -468,9 +468,6 @@ func (t readWriteTransaction) putFile(key []byte, fi protocol.FileInfo) error {
} else if err != nil {
return err
}
} else if fi.BlocksHash != nil {
l.Debugln("Blocks is nil, but BlocksHash is not for file", fi)
fi.BlocksHash = nil
}
fi.Blocks = nil