diff options
author | Christian Kamm <mail@ckamm.de> | 2018-03-27 16:42:09 +0300 |
---|---|---|
committer | ckamm <mail@ckamm.de> | 2018-03-28 11:01:33 +0300 |
commit | 5e75d224ee256b81d46cf976eb23367061d9ae4a (patch) | |
tree | b83376820c0f0cf061bb157608498a2887e7093c /src/libsync | |
parent | 8e7f7cfec8e0d00e6f04152700ecfa8369460ff4 (diff) |
Blacklisting must prevent parent etag updates #6411
Diffstat (limited to 'src/libsync')
-rw-r--r-- | src/libsync/owncloudpropagator.cpp | 5 | ||||
-rw-r--r-- | src/libsync/syncfileitem.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp index 6d8fd28f9..6ac8da4ae 100644 --- a/src/libsync/owncloudpropagator.cpp +++ b/src/libsync/owncloudpropagator.cpp @@ -834,10 +834,13 @@ void PropagatorCompositeJob::slotSubJobFinished(SyncFileItem::Status status) ASSERT(i >= 0); _runningJobs.remove(i); + // Any sub job error will cause the whole composite to fail. This is important + // for knowing whether to update the etag in PropagateDirectory, for example. if (status == SyncFileItem::FatalError || status == SyncFileItem::NormalError || status == SyncFileItem::SoftError - || status == SyncFileItem::DetailError) { + || status == SyncFileItem::DetailError + || status == SyncFileItem::BlacklistedError) { _hasError = status; } diff --git a/src/libsync/syncfileitem.h b/src/libsync/syncfileitem.h index 4272bf9e5..88421c39d 100644 --- a/src/libsync/syncfileitem.h +++ b/src/libsync/syncfileitem.h @@ -75,10 +75,9 @@ public: /** For files whose errors were blacklisted * * If an file is blacklisted due to an error it isn't even reattempted. These - * errors should appear in the issues tab, but not on the account settings and - * should not cause the sync run to fail. + * errors should appear in the issues tab but should be silent otherwise. * - * A DetailError that doesn't cause sync failure. + * A SoftError caused by blacklisting. */ BlacklistedError }; |