mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
lib/db: Allow put partial FileInfo without blocks (ref #6353)
This commit is contained in:
parent
4f29180e7c
commit
a5e12a0a3d
@ -468,9 +468,6 @@ func (t readWriteTransaction) putFile(key []byte, fi protocol.FileInfo) error {
|
|||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return err
|
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
|
fi.Blocks = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user