diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-03-25 19:06:52 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-03-25 19:06:52 +0000 |
commit | ed7e7c686fae7f1d2e3f149c2f2ed8854c4f95c8 (patch) | |
tree | 11b0c48c1a404fa8492f1ad5f5bd86228b8642de /src | |
parent | 2da77cca138c267d2e504d00b99a5d9339531210 (diff) |
restart using init:restart() for better test reliability
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@927545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_server_sup.erl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/couchdb/couch_server_sup.erl b/src/couchdb/couch_server_sup.erl index d89e987d..da0fbdbb 100644 --- a/src/couchdb/couch_server_sup.erl +++ b/src/couchdb/couch_server_sup.erl @@ -32,12 +32,7 @@ start_link(IniFiles) -> end. restart_core_server() -> - supervisor:terminate_child(couch_primary_services, couch_server), - supervisor:terminate_child(couch_secondary_services, stats_aggregator), - supervisor:terminate_child(couch_secondary_services, stats_collector), - supervisor:restart_child(couch_primary_services, couch_server), - supervisor:restart_child(couch_secondary_services, stats_collector), - supervisor:restart_child(couch_secondary_services, stats_aggregator). + init:restart(). couch_config_start_link_wrapper(IniFiles, FirstConfigPid) -> case is_process_alive(FirstConfigPid) of |