[Pkg-owncloud-commits] [owncloud-client] 127/175: Discovery: Ignore folders with any 503. #3113

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:35 UTC 2015


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 e04882cc7cea34d8b3eaa3acc97c6b4b3a59e82d
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Thu Jun 4 09:23:58 2015 +0200

    Discovery: Ignore folders with any 503. #3113
---
 csync/src/csync_update.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c
index 1c89a87..f04e9fe 100644
--- a/csync/src/csync_update.c
+++ b/csync/src/csync_update.c
@@ -621,7 +621,12 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
           if (asp < 0) {
               CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "asprintf failed!");
           }
-      } else if(errno == ERRNO_STORAGE_UNAVAILABLE) {
+      }
+      // The server usually replies with the custom "503 Storage not available"
+      // if some path is temporarily unavailable. But in some cases a standard 503
+      // is returned too. Thus we can't distinguish the two and will treat any
+      // 503 as request to ignore the folder. See #3113 #2884.
+      else if(errno == ERRNO_STORAGE_UNAVAILABLE || errno == ERRNO_SERVICE_UNAVAILABLE) {
           CSYNC_LOG(CSYNC_LOG_PRIORITY_WARN, "Storage was not available!");
           if (ctx->current_fs) {
               ctx->current_fs->instruction = CSYNC_INSTRUCTION_IGNORE;

-- 
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