couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [13/33] rexi commit: updated refs/heads/master to bbf59a2
Date Thu, 28 Aug 2014 12:23:23 GMT
Remove old code_change, set module version to 1


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

Branch: refs/heads/master
Commit: 11b3859aae49c1a575cd70e401c9add9e578ca6b
Parents: cae29fe
Author: Robert Newson <robert.newson@cloudant.com>
Authored: Fri Nov 22 16:40:23 2013 +0000
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Jul 23 17:58:42 2014 +0100

----------------------------------------------------------------------
 src/rexi_gov_manager.erl |  1 +
 src/rexi_governor.erl    |  1 +
 src/rexi_server.erl      | 17 +++--------------
 src/rexi_server_mon.erl  |  1 +
 4 files changed, 6 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/11b3859a/src/rexi_gov_manager.erl
----------------------------------------------------------------------
diff --git a/src/rexi_gov_manager.erl b/src/rexi_gov_manager.erl
index 4fb69e3..46cbe53 100644
--- a/src/rexi_gov_manager.erl
+++ b/src/rexi_gov_manager.erl
@@ -12,6 +12,7 @@
 -module(rexi_gov_manager).
 
 -behaviour(gen_server).
+-vsn(1).
 -behaviour(config_listener).
 
 % API

http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/11b3859a/src/rexi_governor.erl
----------------------------------------------------------------------
diff --git a/src/rexi_governor.erl b/src/rexi_governor.erl
index ad62150..876165d 100644
--- a/src/rexi_governor.erl
+++ b/src/rexi_governor.erl
@@ -12,6 +12,7 @@
 -module(rexi_governor).
 
 -behaviour(gen_server).
+-vsn(1).
 
 %  gen_server callbacks
 -export([init/1, handle_call/3, handle_cast/2, handle_info/2,

http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/11b3859a/src/rexi_server.erl
----------------------------------------------------------------------
diff --git a/src/rexi_server.erl b/src/rexi_server.erl
index 7d928ad..3bb85a0 100644
--- a/src/rexi_server.erl
+++ b/src/rexi_server.erl
@@ -12,6 +12,7 @@
 
 -module(rexi_server).
 -behaviour(gen_server).
+-vsn(1).
 -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
     code_change/3]).
 
@@ -123,20 +124,8 @@ terminate(_Reason, St) ->
         St#st.workers),
     ok.
 
-code_change(_OldVsn, {st, Workers}, _Extra) ->
-    {ok, #st{workers = Workers}};
-
-code_change(_OldVsn, {st, Workers0, Errors, Limit, Count}, _Extra) ->
-    Jobs = [#job{worker_pid=A, worker=B, client_pid=C, client=D}
-        || {A, B, {C, D}} <- ets:tab2list(Workers0)],
-    ets:delete(Workers0),
-    State = #st{errors = Errors, error_limit = Limit, error_count = Count},
-    ets:insert(State#st.workers, Jobs),
-    ets:insert(State#st.clients, Jobs),
-    {ok, State};
-
-code_change(_OldVsn, St, _Extra) ->
-    {ok, St}.
+code_change(_OldVsn, #st{}=State, _Extra) ->
+    {ok, State}.
 
 init_p(From, MFA) ->
     init_p(From, MFA, undefined).

http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/11b3859a/src/rexi_server_mon.erl
----------------------------------------------------------------------
diff --git a/src/rexi_server_mon.erl b/src/rexi_server_mon.erl
index 8cee6e9..756ab95 100644
--- a/src/rexi_server_mon.erl
+++ b/src/rexi_server_mon.erl
@@ -14,6 +14,7 @@
 
 -module(rexi_server_mon).
 -behaviour(gen_server).
+-vsn(1).
 
 
 -export([


Mime
View raw message