couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [02/50] couch commit: updated refs/heads/master to 9d0ac7d
Date Thu, 28 Aug 2014 12:11:38 GMT
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/0faeca28
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/0faeca28
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/0faeca28

Branch: refs/heads/master
Commit: 0faeca280cbdc7a7884d28c392870a3baa684b4d
Parents: a99f396
Author: Robert Newson <robert.newson@cloudant.com>
Authored: Thu Sep 5 11:45:22 2013 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Aug 28 12:59:59 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/0faeca28/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)),


Mime
View raw message