From 7860f047be25f99c4d1e83f9456c7eb245ad37dc Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Sat, 30 May 2009 02:43:52 +0000 Subject: Test and fix for infinite loops in view_servers, fix for crashed OS processes causing leaked erlang processes and fix for view server crashing when view group process terminates. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780165 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_server_sup.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/couchdb/couch_server_sup.erl') diff --git a/src/couchdb/couch_server_sup.erl b/src/couchdb/couch_server_sup.erl index 344073a3..e59286f3 100644 --- a/src/couchdb/couch_server_sup.erl +++ b/src/couchdb/couch_server_sup.erl @@ -32,8 +32,10 @@ start_link(IniFiles) -> end. restart_core_server() -> + supervisor:terminate_child(couch_secondary_services, couch_server), supervisor:terminate_child(couch_primary_services, couch_server), - supervisor:restart_child(couch_primary_services, couch_server). + supervisor:restart_child(couch_primary_services, couch_server), + supervisor:restart_child(couch_secondary_services, couch_server). couch_config_start_link_wrapper(IniFiles, FirstConfigPid) -> case is_process_alive(FirstConfigPid) of -- cgit v1.2.3