SyncEngine: invalid the blacklist entry when the rename destination change
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 25 May 2016 13:01:26 +0000 (15:01 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Wed, 25 May 2016 13:32:45 +0000 (15:32 +0200)
commitf6b35e5d58b59ed02ba76f4d7df262b7952567d8
treee921c5d35f89e2f8627278477c3e6a9d868f4d3f
parentfc1933803e86ac03d4d5f9c8a1911cd82f6579cb
SyncEngine: invalid the blacklist entry when the rename destination change

The problem in this case is if we rename the file "xxx" to "invalid\file".
The rename will fail because the new filename constains a slash, and it
will be blacklisted.
But then if the user re-rename the file to "valid_name", then we should
invalidate the blacklist entry and retry to upload. But we did not do
that because renaming don't change the mtime and we did not store the
rename target in the database

IL issue 558
src/libsync/syncengine.cpp
src/libsync/syncjournaldb.cpp
src/libsync/syncjournalfilerecord.cpp
src/libsync/syncjournalfilerecord.h