diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2019-09-05 13:57:12 -0400 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2019-09-05 13:57:12 -0400 |
commit | 7e0cc2163e9a00a617bef368b72d264e13417bca (patch) | |
tree | 76720716d89e7ddd9a940e6a2890cbdb2aa01501 | |
parent | 4a15a4c33c85bed023c4c9fa5a608741b4bbf285 (diff) | |
download | couchdb-7e0cc2163e9a00a617bef368b72d264e13417bca.tar.gz |
Remove old multi-query path
Users should send requests with multiple queries to the new endpoint:
/db/_design/{ddoc}/_view/{view}/queries
Closes #2168
-rw-r--r-- | src/chttpd/src/chttpd_view.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chttpd/src/chttpd_view.erl b/src/chttpd/src/chttpd_view.erl index 26107d7c5..42c3afdf2 100644 --- a/src/chttpd/src/chttpd_view.erl +++ b/src/chttpd/src/chttpd_view.erl @@ -91,19 +91,19 @@ handle_view_req(#httpd{method='POST', Keys = couch_mrview_util:get_view_keys(Props), Queries = couch_mrview_util:get_view_queries(Props), case {Queries, Keys} of - {Queries, undefined} when is_list(Queries) -> - [couch_stats:increment_counter([couchdb, httpd, view_reads]) || _I <- Queries], - multi_query_view(Req, Db, DDoc, ViewName, Queries); {undefined, Keys} when is_list(Keys) -> couch_stats:increment_counter([couchdb, httpd, view_reads]), design_doc_view(Req, Db, DDoc, ViewName, Keys); {undefined, undefined} -> throw({ bad_request, - "POST body must contain `keys` or `queries` field" + "POST body must contain `keys` field" }); {_, _} -> - throw({bad_request, "`keys` and `queries` are mutually exclusive"}) + throw({ + bad_request, + "The `queries` parameter is no longer supported at this endpoint" + }) end; handle_view_req(Req, _Db, _DDoc) -> |