couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r979907 - /couchdb/trunk/src/couchdb/couch_rep_httpc.erl
Date Tue, 27 Jul 2010 23:07:19 GMT
Author: jchris
Date: Tue Jul 27 23:07:19 2010
New Revision: 979907

URL: http://svn.apache.org/viewvc?rev=979907&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/trunk/src/couchdb/couch_rep_httpc.erl

Modified: couchdb/trunk/src/couchdb/couch_rep_httpc.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep_httpc.erl?rev=979907&r1=979906&r2=979907&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep_httpc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep_httpc.erl Tue Jul 27 23:07:19 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,



Mime
View raw message