couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1153250 - /couchdb/trunk/src/couchdb/couch_httpd_replicator.erl
Date Tue, 02 Aug 2011 19:30:26 GMT
Author: fdmanana
Date: Tue Aug  2 19:30:25 2011
New Revision: 1153250

URL: http://svn.apache.org/viewvc?rev=1153250&view=rev
Log:
Return HTTP code 202 for continuous replications

This was the behaviour of the previous replicator's
implementation. Issue identified by Dale Harvey.


Modified:
    couchdb/trunk/src/couchdb/couch_httpd_replicator.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_replicator.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_replicator.erl?rev=1153250&r1=1153249&r2=1153250&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_replicator.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_replicator.erl Tue Aug  2 19:30:25 2011
@@ -44,7 +44,7 @@ handle_req(#httpd{method = 'POST', user_
     {ok, {cancelled, RepId}} ->
         send_json(Req, 200, {[{ok, true}, {<<"_local_id">>, RepId}]});
     {ok, {continuous, RepId}} ->
-        send_json(Req, 200, {[{ok, true}, {<<"_local_id">>, RepId}]});
+        send_json(Req, 202, {[{ok, true}, {<<"_local_id">>, RepId}]});
     {ok, {HistoryResults}} ->
         send_json(Req, {[{ok, true} | HistoryResults]})
     end;



Mime
View raw message