Skip to content
Browse files

Mark proc as unused in ret_proc

Otherwise we'll never reuse it
  • Loading branch information...
1 parent e9440ae commit 017ba1c626e565d3b70c90ca92496d2602e4a909 @kocolosk kocolosk committed with Robert Newson Dec 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/couch/src/couch_proc_manager.erl
2 apps/couch/src/couch_proc_manager.erl
@@ -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.
case is_process_alive(Pid) of true ->
gen_server:cast(Pid, garbage_collect),
- ets:insert(, Proc);
+ ets:insert(, Proc#proc{client=nil});
false -> ok end,
{reply, true, State};

0 comments on commit 017ba1c

Please sign in to comment.
Something went wrong with that request. Please try again.