Replace WaitForFinishedInParentDirectory with WaitForFinished for directory moves
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 13 Feb 2017 14:57:28 +0000 (15:57 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Thu, 23 Feb 2017 16:54:33 +0000 (17:54 +0100)
commit0b098045f1d548d147962a7e1d6bbd62ccffcbd7
treeab81a438beba16c188491bd5eb808dee17de1693
parentddb6b3b2625f41e0271c82e2bf1adedbc462b0db
Replace WaitForFinishedInParentDirectory with WaitForFinished for directory moves

In preparation for the PropagateDirectory refactoring, simplify things
by removing WaitForFinishedInParentDirectory, which is currently
implemented as a one-level check.

This value is important for directory items, but is however never
used since a directory CSYNC_INSTRUCTION_RENAME item will always be in
PropagateDirectory::_firstJob, which will have to pass through its own
PropagateDirectory job's parallelism() before reaching the parent's
_subJobs optimization.
Since PropagateDirectory::parallelism can only return WaitForFinished
or FullParallelism, that value is lost. So this commit doesn't
change the behavior for directories, and allow file renames to be
scheduled in parallel across directories (which isn't a problem).
src/libsync/owncloudpropagator.cpp
src/libsync/owncloudpropagator.h
src/libsync/propagateremotemove.h
src/libsync/propagatorjobs.h