couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [49/50] chttpd commit: updated refs/heads/master to 58020ab
Date Thu, 28 Aug 2014 12:00:12 GMT
Remove unused handle_restart_req


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/fe2a94eb
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/fe2a94eb
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/fe2a94eb

Branch: refs/heads/master
Commit: fe2a94ebfc3149a4c1cdc07ef545ec7fa45b4351
Parents: 99b4bc7
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Sat Aug 16 21:25:03 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Sat Aug 16 21:25:03 2014 -0500

----------------------------------------------------------------------
 src/chttpd_misc.erl | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/fe2a94eb/src/chttpd_misc.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl
index a2719fd..c1c805d 100644
--- a/src/chttpd_misc.erl
+++ b/src/chttpd_misc.erl
@@ -19,7 +19,6 @@
     handle_favicon_req/2,
     handle_replicate_req/1,
     handle_reload_query_servers_req/1,
-    handle_restart_req/1,
     handle_sleep_req/1,
     handle_system_req/1,
     handle_task_status_req/1,
@@ -213,12 +212,6 @@ choose_node(Key) when is_binary(Key) ->
 choose_node(Key) ->
     choose_node(term_to_binary(Key)).
 
-handle_restart_req(#httpd{method='POST'}=Req) ->
-    couch_server_sup:restart_core_server(),
-    send_json(Req, 200, {[{ok, true}]});
-handle_restart_req(Req) ->
-    send_method_not_allowed(Req, "POST").
-
 handle_reload_query_servers_req(#httpd{method='POST'}=Req) ->
     ok = couch_proc_manager:reload(),
     send_json(Req, 200, {[{ok, true}]});


Mime
View raw message