ChunkingNG: delete stale chunks if the file was changed locally
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 20 Jan 2017 11:06:20 +0000 (12:06 +0100)
committerOlivier Goffart <ogoffart@woboq.com>
Fri, 20 Jan 2017 13:48:53 +0000 (14:48 +0100)
commitf6c77fad17060bf25f4e6591360340670ba2dd1c
tree8dbe04b42e1136c51a834b9471e270b010707ddd
parenta7efe144fcc39cfb5641c6602cfe0c94d38979cd
ChunkingNG: delete stale chunks if the file was changed locally

Relates to https://github.com/owncloud/core/issues/26981

We do not track the success or error of the DeleteJob because it does not
matter. If it fails, it might be because the chunks were already removed.
If not, the chunks will be stale, but the server must anyway do a few
cleanup from time to time because we do not always remove the chunks
src/libsync/propagateuploadng.cpp
test/syncenginetestutils.h
test/testchunkingng.cpp