You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2022/07/13 15:40:39 UTC
[couchdb] branch remove-leftover-local-endpoint-clause created (now 2c3e55448)
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a change to branch remove-leftover-local-endpoint-clause
in repository https://gitbox.apache.org/repos/asf/couchdb.git
at 2c3e55448 Remove some left-over local endpoint clauses in replicator
This branch includes the following new commits:
new 2c3e55448 Remove some left-over local endpoint clauses in replicator
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/01: Remove some left-over local endpoint clauses in replicator
Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch remove-leftover-local-endpoint-clause
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 2c3e55448385f974cc32743ded6e864cebe4a7cd
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Wed Jul 13 11:05:10 2022 -0400
Remove some left-over local endpoint clauses in replicator
We removed local endpoints a while back and these were left over.
Also remove some unused headers as discovered by erlang_ls and emacs.
---
src/couch_replicator/src/couch_replicator_api_wrap.erl | 6 +-----
src/couch_replicator/src/couch_replicator_changes_reader.erl | 6 ------
src/couch_replicator/src/couch_replicator_worker.erl | 1 -
3 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/src/couch_replicator/src/couch_replicator_api_wrap.erl b/src/couch_replicator/src/couch_replicator_api_wrap.erl
index 193f8dad4..7d34ff053 100644
--- a/src/couch_replicator/src/couch_replicator_api_wrap.erl
+++ b/src/couch_replicator/src/couch_replicator_api_wrap.erl
@@ -58,11 +58,7 @@
-define(MIN_URL_LEN, 200).
db_uri(#httpdb{url = Url}) ->
- couch_util:url_strip_password(Url);
-db_uri(DbName) when is_binary(DbName) ->
- ?b2l(DbName);
-db_uri(Db) ->
- db_uri(couch_db:name(Db)).
+ couch_util:url_strip_password(Url).
db_open(Db) ->
db_open(Db, false, []).
diff --git a/src/couch_replicator/src/couch_replicator_changes_reader.erl b/src/couch_replicator/src/couch_replicator_changes_reader.erl
index 9f8473200..7fa8c26c2 100644
--- a/src/couch_replicator/src/couch_replicator_changes_reader.erl
+++ b/src/couch_replicator/src/couch_replicator_changes_reader.erl
@@ -38,12 +38,6 @@ start_link(StartSeq, #httpdb{} = Db, ChangesQueue, Options) ->
ChangesQueue,
Options
)
- end)};
-start_link(StartSeq, Db, ChangesQueue, Options) ->
- Parent = self(),
- {ok,
- spawn_link(fun() ->
- ?MODULE:read_changes(Parent, StartSeq, Db, ChangesQueue, Options)
end)}.
read_changes(Parent, StartSeq, Db, ChangesQueue, Options) ->
diff --git a/src/couch_replicator/src/couch_replicator_worker.erl b/src/couch_replicator/src/couch_replicator_worker.erl
index f66a019e2..233de6dd3 100644
--- a/src/couch_replicator/src/couch_replicator_worker.erl
+++ b/src/couch_replicator/src/couch_replicator_worker.erl
@@ -24,7 +24,6 @@
-include_lib("couch/include/couch_db.hrl").
-include_lib("couch_replicator/include/couch_replicator_api_wrap.hrl").
--include("couch_replicator.hrl").
% TODO: maybe make both buffer max sizes configurable