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_view.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_view.erl') diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl index b74fb47d..301ea8b7 100644 --- a/src/couchdb/couch_view.erl +++ b/src/couchdb/couch_view.erl @@ -260,7 +260,7 @@ handle_call({start_group_server, DbName, GroupId}, _From, #server{root_dir=Root} case ets:lookup(group_servers_by_name, {DbName, GroupId}) of [] -> ?LOG_DEBUG("Spawning new group server for view group ~s in database ~s.", [GroupId, DbName]), - case couch_view_group:start_link({view, Root, DbName, GroupId}) of + case (catch couch_view_group:start_link({view, Root, DbName, GroupId})) of {ok, NewPid} -> add_to_ets(NewPid, DbName, GroupId), {reply, {ok, NewPid}, Server}; -- cgit v1.2.3