diff options
author | Joan Touzet <joant@atypical.net> | 2019-10-11 18:04:39 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2019-12-02 17:51:44 +0000 |
commit | 3ccf8d1f078454869d915a33a42df00fd9cd7b03 (patch) | |
tree | cdfc2ce9c0ee4ec89444003bed9e736fd9f8ddbd | |
parent | 971ae58a04db50116bdd366a0684aa6c92f0c5f9 (diff) | |
download | couchdb-3ccf8d1f078454869d915a33a42df00fd9cd7b03.tar.gz |
Remove global _system handler
-rw-r--r-- | src/chttpd/src/chttpd_misc.erl | 8 | ||||
-rw-r--r-- | src/couch/src/couch.app.src | 3 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/chttpd/src/chttpd_misc.erl b/src/chttpd/src/chttpd_misc.erl index dd247128b..a75f1088c 100644 --- a/src/chttpd/src/chttpd_misc.erl +++ b/src/chttpd/src/chttpd_misc.erl @@ -19,7 +19,6 @@ handle_favicon_req/2, handle_replicate_req/1, handle_reload_query_servers_req/1, - handle_system_req/1, handle_task_status_req/1, handle_up_req/1, handle_utils_dir_req/1, @@ -274,13 +273,6 @@ handle_uuids_req(Req) -> couch_httpd_misc_handlers:handle_uuids_req(Req). -% Note: this resource is exposed on the backdoor interface, but it's in chttpd -% because it's not couch trunk -handle_system_req(Req) -> - Stats = get_stats(), - EJSON = couch_stats_httpd:to_ejson(Stats), - send_json(Req, EJSON). - get_stats() -> Other = erlang:memory(system) - lists:sum([X || {_,X} <- erlang:memory([atom, code, binary, ets])]), diff --git a/src/couch/src/couch.app.src b/src/couch/src/couch.app.src index 706b439fa..2b642c085 100644 --- a/src/couch/src/couch.app.src +++ b/src/couch/src/couch.app.src @@ -60,8 +60,7 @@ {"_uuids", "{couch_httpd_misc_handlers, handle_uuids_req}"}, {"_stats", "{couch_stats_httpd, handle_stats_req}"}, {"_session", "{couch_httpd_auth, handle_session_req}"}, - {"_plugins", "{couch_plugins_httpd, handle_req}"}, - {"_system", "{chttpd_misc, handle_system_req}"} + {"_plugins", "{couch_plugins_httpd, handle_req}"} ]}, { httpd_db_handlers, [ {"_all_docs", "{couch_mrview_http, handle_all_docs_req}"}, |