Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 14585 invoked from network); 27 Jul 2010 23:10:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jul 2010 23:10:02 -0000 Received: (qmail 95595 invoked by uid 500); 27 Jul 2010 23:10:02 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 95558 invoked by uid 500); 27 Jul 2010 23:10:01 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 95551 invoked by uid 99); 27 Jul 2010 23:10:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 23:10:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 23:10:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4B92823889CB; Tue, 27 Jul 2010 23:08:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r979910 - /couchdb/branches/0.11.x/src/couchdb/couch_rep_httpc.erl Date: Tue, 27 Jul 2010 23:08:45 -0000 To: commits@couchdb.apache.org From: jchris@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100727230845.4B92823889CB@eris.apache.org> Author: jchris Date: Tue Jul 27 23:08:44 2010 New Revision: 979910 URL: http://svn.apache.org/viewvc?rev=979910&view=rev Log: replicator was getting stuck on push replication to design docs by non-admins. this fix is a bit hackish but makes replication work. once the new_replicator is in place this hackish fix will not matter, so for now it is a good solution. Modified: couchdb/branches/0.11.x/src/couchdb/couch_rep_httpc.erl Modified: couchdb/branches/0.11.x/src/couchdb/couch_rep_httpc.erl URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_rep_httpc.erl?rev=979910&r1=979909&r2=979910&view=diff ============================================================================== --- couchdb/branches/0.11.x/src/couchdb/couch_rep_httpc.erl (original) +++ couchdb/branches/0.11.x/src/couchdb/couch_rep_httpc.erl Tue Jul 27 23:08:44 2010 @@ -140,7 +140,7 @@ process_response({ok, Status, Headers, B do_request(redirected_request(Req, RedirectUrl)); Code =:= 409 -> throw(conflict); - Code >= 400, Code < 500 -> + Code >= 400, Code =< 500 -> ?JSON_DECODE(maybe_decompress(Headers, Body)); Code =:= 500; Code =:= 502; Code =:= 503 -> #http_db{pause = Pause, retries = Retries} = Req,