diff options
-rw-r--r-- | apps/couch/src/couch_proc_manager.erl | 2 |
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}; |