mirror of
https://github.com/syncthing/syncthing.git
synced 2026-05-12 00:54:12 -04:00
lib/db: Allow put partial FileInfo without blocks (ref #6353)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user