You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2010/07/29 04:35:14 UTC
svn commit: r980293 - /couchdb/trunk/src/couchdb/couch_rep_httpc.erl
Author: jchris
Date: Thu Jul 29 02:35:13 2010
New Revision: 980293
URL: http://svn.apache.org/viewvc?rev=980293&view=rev
Log:
Revert "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."
This was too much of a hack.
This reverts commit 7223697dafa234a9123e6f72b826ba11dc58e88f aka r979907
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=980293&r1=980292&r2=980293&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep_httpc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep_httpc.erl Thu Jul 29 02:35:13 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,