summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2011-12-15 17:03:47 -0500
committerRobert Newson <robert.newson@cloudant.com>2012-11-14 17:27:13 +0000
commit017ba1c626e565d3b70c90ca92496d2602e4a909 (patch)
tree9aa099e1ceb05cd8c57c0a79d82219ddec6441cc /apps
parente9440aef1c6cc708b3bd531876658485cb60ec86 (diff)
Mark proc as unused in ret_proc
Otherwise we'll never reuse it
Diffstat (limited to 'apps')
-rw-r--r--apps/couch/src/couch_proc_manager.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/couch/src/couch_proc_manager.erl b/apps/couch/src/couch_proc_manager.erl
index d09893eb..6c2d339f 100644
--- a/apps/couch/src/couch_proc_manager.erl
+++ b/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(State#state.tab, Proc);
+ ets:insert(State#state.tab, Proc#proc{client=nil});
false -> ok end,
{reply, true, State};