Discovery: Remove stale DB entries
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 16 Oct 2018 14:00:59 +0000 (16:00 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:10 +0000 (10:58 +0100)
commitf666511a4b8c220763c119ed165ce0ded4e0ec81
tree3f9083ee524b92de131a93119237c0c913b3d166
parent5683278fabdf560821dffa5d497e28e2edc8bca2
Discovery: Remove stale DB entries

And test the Remove/Remove case.

This means we need to always query the database for all the entries.
This showed another small bug in the test in which sync item for virtual
files at the root could have a slash in front of them.
src/libsync/discovery.cpp
test/testsyncconflict.cpp