mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
lib/db: Allow put partial FileInfo without blocks (ref #6353)
This commit is contained in:
parent
32e12abb43
commit
10cb14fcb8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user