diff options
author | Damien F. Katz <damien@apache.org> | 2009-05-30 02:43:52 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-05-30 02:43:52 +0000 |
commit | 7860f047be25f99c4d1e83f9456c7eb245ad37dc (patch) | |
tree | 8a53ccfc11cb17bd666035892c8dbf14e36d5b0e /src/couchdb/couch_view.erl | |
parent | c1ca0dd42524fb6999e1f05de94ccff71bc497b6 (diff) |
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
Diffstat (limited to 'src/couchdb/couch_view.erl')
-rw-r--r-- | src/couchdb/couch_view.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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}; |