mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
We can't just drop the snap because it's in use elsewhere. This should be equally functional.
This commit is contained in:
parent
5c9dc4c883
commit
651ee2ce74
@ -460,14 +460,9 @@ func (f *folder) scanSubdirs(subDirs []string) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if batch.full() {
|
||||
if err := batch.flush(); err != nil {
|
||||
if err := batch.flushIfFull(); err != nil {
|
||||
return err
|
||||
}
|
||||
snap.Release()
|
||||
snap = f.fset.Snapshot()
|
||||
alreadyUsed = make(map[string]struct{})
|
||||
}
|
||||
|
||||
batch.append(res.File)
|
||||
changes++
|
||||
|
Loading…
Reference in New Issue
Block a user