mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00: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 {
|
if err = f.performFinish(nil, target, curTarget, true, tempName, dbUpdateChan, scanChan); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
dbUpdateChan <- dbUpdateJob{target, dbUpdateHandleFile}
|
|
||||||
} else {
|
} else {
|
||||||
// We failed the rename so we have a source file that we still need to
|
// 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*
|
// get rid of. Attempt to delete it instead so that we make *some*
|
||||||
|
Loading…
Reference in New Issue
Block a user