mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 02:18:44 -07:00
lib/model: Prevent repeat db update (#5231)
This commit is contained in:
parent
cb0950b3fd
commit
c2b0d309fb
@ -916,8 +916,6 @@ func (f *sendReceiveFolder) renameFile(cur, source, target protocol.FileInfo, db
|
||||
if err = f.performFinish(nil, target, curTarget, true, tempName, dbUpdateChan, scanChan); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
dbUpdateChan <- dbUpdateJob{target, dbUpdateHandleFile}
|
||||
} else {
|
||||
// We failed the rename so we have a source file that we still need to
|
||||
// get rid of. Attempt to delete it instead so that we make *some*
|
||||
|
Loading…
Reference in New Issue
Block a user