You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/05 18:47:34 UTC

[34/34] couch commit: updated refs/heads/windsor-merge-209 to f2368da

fix code_change in couch_proc_manager


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/f2368da9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/f2368da9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/f2368da9

Branch: refs/heads/windsor-merge-209
Commit: f2368da9421531a70b1114a2497ee06c97be2d0f
Parents: 8e09de2
Author: Robert Newson <ro...@cloudant.com>
Authored: Thu Sep 5 11:45:22 2013 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Aug 5 17:42:57 2014 +0100

----------------------------------------------------------------------
 src/couch_proc_manager.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/f2368da9/src/couch_proc_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_proc_manager.erl b/src/couch_proc_manager.erl
index 6a64fa7..2744c88 100644
--- a/src/couch_proc_manager.erl
+++ b/src/couch_proc_manager.erl
@@ -231,6 +231,8 @@ terminate(_Reason, #state{tab=Tab}) ->
     ets:foldl(fun(#proc_int{pid=P}, _) -> couch_util:shutdown_sync(P) end, 0, Tab),
     ok.
 
+code_change(_OldVsn, #state{}=State, _Extra) ->
+    {ok, State};
 code_change(_OldVsn, {state, Tab}, _Extra) ->
     State = #state{tab = Tab, threshold_ts = {0,0,0}},
     ProcInts = lists:map(fun import_proc/1, ets:tab2list(Tab)),