summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-07-29 02:35:13 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-07-29 02:35:13 +0000
commitdb9eca521fc4d739c87b72fdc62e702176bea618 (patch)
treef6ff7a77b913a02ee18730df3d93d21b409dfcac
parent850d4e412da80d6f6a2c23f71a40a85329561a34 (diff)
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 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980293 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/couchdb/couch_rep_httpc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep_httpc.erl b/src/couchdb/couch_rep_httpc.erl
index b5113f64..768d88a3 100644
--- a/src/couchdb/couch_rep_httpc.erl
+++ b/src/couchdb/couch_rep_httpc.erl
@@ -140,7 +140,7 @@ process_response({ok, Status, Headers, Body}, Req) ->
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,