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 4f29180e7c
commit a5e12a0a3d

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