You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2018/03/26 20:55:42 UTC
[couchdb] 11/33: WIP - chttpd_db.erl
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch COUCHDB-3326-clustered-purge-davisp-refactor
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit ca898e9f1d77500450dfe66cf5810c2d0c12b480
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Mar 26 13:03:17 2018 -0500
WIP - chttpd_db.erl
---
src/chttpd/src/chttpd_db.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl
index e2e920f..befcc12 100644
--- a/src/chttpd/src/chttpd_db.erl
+++ b/src/chttpd/src/chttpd_db.erl
@@ -503,8 +503,8 @@ db_req(#httpd{method='POST',path_parts=[_,<<"_purge">>]}=Req, Db) ->
{IdsRevs} = chttpd:json_body_obj(Req),
IdsRevs2 = [{Id, couch_doc:parse_revs(Revs)} || {Id, Revs} <- IdsRevs],
{ok, Results} = fabric:purge_docs(Db, IdsRevs2, Options),
- {Code, JSON} = purge_results_to_json(IdsRevs2, Results),
- send_json(Req, Code, {[{<<"purge_seq">>, null}, {<<"purged">>, JSON}]});
+ {Code, Json} = purge_results_to_json(IdsRevs2, Results),
+ send_json(Req, Code, {[{<<"purge_seq">>, null}, {<<"purged">>, {Json}}]});
db_req(#httpd{path_parts=[_,<<"_purge">>]}=Req, _Db) ->
send_method_not_allowed(Req, "POST");
--
To stop receiving notification emails like this one, please contact
davisp@apache.org.