You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2019/11/26 19:00:07 UTC

[couchdb] 02/02: remove _all_dbs c&p now we can proxy it

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch 1523-bye-bye-5986-rnewson-4
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 1fea691c037102f57435f609a01cab2e90b31327
Author: Robert Newson <rn...@apache.org>
AuthorDate: Tue Nov 26 18:59:33 2019 +0000

    remove _all_dbs c&p now we can proxy it
---
 src/chttpd/src/chttpd_node.erl | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/chttpd/src/chttpd_node.erl b/src/chttpd/src/chttpd_node.erl
index afdac9a..0c21868 100644
--- a/src/chttpd/src/chttpd_node.erl
+++ b/src/chttpd/src/chttpd_node.erl
@@ -54,12 +54,6 @@ handle_node_req(#httpd{method='POST', path_parts=[_, Node, <<"_restart">>]}=Req)
     send_json(Req, 200, {[{ok, true}]});
 handle_node_req(#httpd{path_parts=[_, _Node, <<"_restart">>]}=Req) ->
     send_method_not_allowed(Req, "POST");
-% GET /_node/$node/_all_dbs
-handle_node_req(#httpd{method='GET', path_parts=[_, Node, <<"_all_dbs">>]}=Req) ->
-    {ok, DbNames} = call_node(Node, couch_server, all_databases, []),
-    send_json(Req, DbNames);
-handle_node_req(#httpd{path_parts=[_, _Node, <<"_all_dbs">>]}=Req) ->
-    send_method_not_allowed(Req, "GET");
 handle_node_req(#httpd{path_parts=[_, Node | PathParts],
                        mochi_req=MochiReq0}) ->
     % strip /_node/{node} from Req0 before descending further