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)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 5 Jul 2024 11:57:23 +0000 (11:57 +0000)
commitc9b64b1bf23a36cadd2d05da0d6ae6ce8520e52a
tree7bee713b1a092c65d06baa14310fcb393cc16db0
parentfdd5356736aac6bf99b5efd240aca90051a6f68c
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