Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 14258 invoked from network); 27 Jul 2010 23:09:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jul 2010 23:09:23 -0000 Received: (qmail 94300 invoked by uid 500); 27 Jul 2010 23:09:23 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 94239 invoked by uid 500); 27 Jul 2010 23:09:22 -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 94232 invoked by uid 99); 27 Jul 2010 23:09:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 23:09:22 +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:09:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 709A323889E0; Tue, 27 Jul 2010 23:08:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r979908 - /couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl Date: Tue, 27 Jul 2010 23:08:03 -0000 To: commits@couchdb.apache.org From: jchris@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100727230803.709A323889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jchris Date: Tue Jul 27 23:08:03 2010 New Revision: 979908 URL: http://svn.apache.org/viewvc?rev=979908&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/1.0.x/src/couchdb/couch_rep_httpc.erl Modified: couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl?rev=979908&r1=979907&r2=979908&view=diff ============================================================================== --- couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl (original) +++ couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl Tue Jul 27 23:08:03 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,