[Pkg-owncloud-commits] [owncloud-client] 17/70: Fix not blacklisting error 5xx
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat May 17 20:01:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 1631cfdaf19a9312693ec29415d2951a88ac6edd
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Fri May 2 17:25:17 2014 +0200
Fix not blacklisting error 5xx
---
src/mirall/owncloudpropagator.cpp | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index c35fc6f..edb9677 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -45,11 +45,6 @@ void PropagateItemJob::done(SyncFileItem::Status status, const QString &errorStr
if( _item._httpErrorCode == 403 ||_item._httpErrorCode == 413 || _item._httpErrorCode == 415 ) {
qDebug() << "Fatal Error condition" << _item._httpErrorCode << ", forbid retry!";
retries = -1;
-#ifdef OWNCLOUD_5XX_NO_BLACKLIST
- } else if (_item._httpErrorCode / 100 == 5) {
- // In this configuration, never blacklist error 5xx
- qDebug() << "Do not blacklist error " << _item._httpErrorCode;
-#endif
} else {
static QAtomicInt defaultRetriesCount(qgetenv("OWNCLOUD_BLACKLIST_COUNT").toInt());
if (defaultRetriesCount.fetchAndAddAcquire(0) <= 0) {
@@ -65,6 +60,13 @@ void PropagateItemJob::done(SyncFileItem::Status status, const QString &errorStr
break;
case SyncFileItem::FatalError:
case SyncFileItem::NormalError:
+#ifdef OWNCLOUD_5XX_NO_BLACKLIST
+ if (_item._httpErrorCode / 100 == 5) {
+ // In this configuration, never blacklist error 5xx
+ qDebug() << "Do not blacklist error " << _item._httpErrorCode;
+ break;
+ }
+#endif
_propagator->_journal->updateBlacklistEntry( record );
break;
case SyncFileItem::Success:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list