Check if file is already in database before processing rename.
authorCamila Ayres <hello@camilasan.com>
Fri, 24 May 2024 19:04:15 +0000 (21:04 +0200)
committerCamila Ayres <hello@camilasan.com>
Fri, 5 Jul 2024 10:56:51 +0000 (12:56 +0200)
commit591808f25e300583f7bbc574471990b1b734afd6
tree1bc75341bc4787e5e147fa590fd3d3bc8b999d81
parente4c571c43b151c3db497200220bb2e193a940a20
Check if file is already in database before processing rename.

- The rename check was not happening since it was hitting error "Move without permission to rename base file"
- The file was then processed as a new file
- Also check #6535.

Possible workaround for #6549.

Signed-off-by: Camila Ayres <hello@camilasan.com>
src/libsync/discovery.cpp