mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
lib/db: Fix non-truncated fileinfo loading (#6621)
This commit is contained in:
parent
57ea8a1bf5
commit
da99203dcd
@ -167,7 +167,7 @@ func (t *readOnlyTransaction) withHave(folder, device, prefix []byte, truncate b
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if f, ok, err := t.getFileTrunc(key, true); err != nil {
|
||||
if f, ok, err := t.getFileTrunc(key, truncate); err != nil {
|
||||
return err
|
||||
} else if ok && !fn(f) {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user