Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Mark proc as unused in ret_proc
Browse files Browse the repository at this point in the history
Otherwise we'll never reuse it
  • Loading branch information
kocolosk authored and Robert Newson committed Nov 14, 2012
1 parent e9440ae commit 017ba1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/couch/src/couch_proc_manager.erl
Expand Up @@ -68,7 +68,7 @@ handle_call({ret_proc, #proc{client=Ref, pid=Pid} = Proc}, _From, State) ->
% table before the insert. Don't know which approach is cheaper. % table before the insert. Don't know which approach is cheaper.
case is_process_alive(Pid) of true -> case is_process_alive(Pid) of true ->
gen_server:cast(Pid, garbage_collect), gen_server:cast(Pid, garbage_collect),
ets:insert(State#state.tab, Proc); ets:insert(State#state.tab, Proc#proc{client=nil});
false -> ok end, false -> ok end,
{reply, true, State}; {reply, true, State};


Expand Down

0 comments on commit 017ba1c

Please sign in to comment.