Also check on mangled names when cleaning up the journal
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 30 Jun 2020 08:24:40 +0000 (10:24 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Wed, 1 Jul 2020 16:58:29 +0000 (16:58 +0000)
commit0f21b625ab540b84593ab49b4666d896e198aa24
tree9e5dd1faee26b02a90f8c24e27604546c4f3b381
parent3204c1591150b955bdb69ff2b75d23c3820cf5b9
Also check on mangled names when cleaning up the journal

Otherwise, after a first sync all the mangled entries would be removed
from the journal. On second sync it would be fine because we'd then have
seen the unmangled names because of the local files. Unfortunately
that'd mean reuploading them for nothing or trying to mkdir again on the
server for nothing... with a chance of using differently mangled names
(although I didn't spot it, I can't exclude it never happened).

This also led to weirdly getting stuck during sync when there was more
than one sync point.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/common/syncjournaldb.cpp