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/06 20:18:03 UTC
[13/27] couch-replicator commit: updated refs/heads/windsor-merge to
75e5ba1
Remove old code_change, set module version to 1
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/0c095c0a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/0c095c0a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/0c095c0a
Branch: refs/heads/windsor-merge
Commit: 0c095c0af6d98218b08dc1326dc7409ff8c61286
Parents: 65a1a10
Author: Robert Newson <ro...@cloudant.com>
Authored: Fri Nov 22 16:46:18 2013 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Jul 29 15:03:10 2014 +0100
----------------------------------------------------------------------
src/couch_replicator.erl | 5 +----
src/couch_replicator_httpc_pool.erl | 13 ++-----------
src/couch_replicator_manager.erl | 1 +
src/couch_replicator_notifier.erl | 1 +
src/couch_replicator_worker.erl | 1 +
5 files changed, 6 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/0c095c0a/src/couch_replicator.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator.erl b/src/couch_replicator.erl
index 47bbd3a..ef44c54 100644
--- a/src/couch_replicator.erl
+++ b/src/couch_replicator.erl
@@ -12,6 +12,7 @@
-module(couch_replicator).
-behaviour(gen_server).
+-vsn(1).
% public API
-export([replicate/2]).
@@ -466,10 +467,6 @@ handle_cast({report_seq, Seq},
{noreply, State#rep_state{seqs_in_progress = NewSeqsInProgress}}.
-code_change(OldVsn, OldState, Extra) when tuple_size(OldState) =:= 30 ->
- code_change(OldVsn, erlang:append_element(OldState, true), Extra);
-code_change(OldVsn, OldState, Extra) when tuple_size(OldState) =:= 31 ->
- code_change(OldVsn, erlang:append_element(OldState, 5000), Extra);
code_change(_OldVsn, #rep_state{}=State, _Extra) ->
{ok, State}.
http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/0c095c0a/src/couch_replicator_httpc_pool.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_httpc_pool.erl b/src/couch_replicator_httpc_pool.erl
index 0a42284..c895048 100644
--- a/src/couch_replicator_httpc_pool.erl
+++ b/src/couch_replicator_httpc_pool.erl
@@ -12,6 +12,7 @@
-module(couch_replicator_httpc_pool).
-behaviour(gen_server).
+-vsn(1).
% public API
-export([start_link/2, stop/1]).
@@ -163,17 +164,7 @@ handle_info({'DOWN', Ref, process, _, _}, #state{callers = Callers} = State) ->
{noreply, State}
end.
-code_change(_OldVsn, OldState, _Extra) when tuple_size(OldState) =:= 7 ->
- case element(7, OldState) of
- EtsTable when is_integer(EtsTable) ->
- NewState = setelement(7, OldState, ets:tab2list(EtsTable)),
- ets:delete(EtsTable),
- {ok, NewState};
- Callers when is_list(Callers) ->
- % Already upgraded
- {ok, OldState}
- end;
-code_change(_OldVsn, State, _Extra) ->
+code_change(_OldVsn, #state{}=State, _Extra) ->
{ok, State}.
http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/0c095c0a/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_manager.erl b/src/couch_replicator_manager.erl
index 949622a..b0c1c9b 100644
--- a/src/couch_replicator_manager.erl
+++ b/src/couch_replicator_manager.erl
@@ -12,6 +12,7 @@
-module(couch_replicator_manager).
-behaviour(gen_server).
+-vsn(1).
-behaviour(config_listener).
% public API
http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/0c095c0a/src/couch_replicator_notifier.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_notifier.erl b/src/couch_replicator_notifier.erl
index 39fd68b..99b199a 100644
--- a/src/couch_replicator_notifier.erl
+++ b/src/couch_replicator_notifier.erl
@@ -13,6 +13,7 @@
-module(couch_replicator_notifier).
-behaviour(gen_event).
+-vsn(1).
% public API
-export([start_link/1, stop/1, notify/1]).
http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/0c095c0a/src/couch_replicator_worker.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_worker.erl b/src/couch_replicator_worker.erl
index a0638c6..5c8601d 100644
--- a/src/couch_replicator_worker.erl
+++ b/src/couch_replicator_worker.erl
@@ -12,6 +12,7 @@
-module(couch_replicator_worker).
-behaviour(gen_server).
+-vsn(1).
% public API
-export([start_link/5]).