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/02/13 12:36:46 UTC
[1/2] couchdb commit: updated refs/heads/master to c6c3794
Updated Branches:
refs/heads/master e54d1d8fc -> c6c379459
Allow runtime configuration of maximum url length in replication
COUCHDB-2059
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/e1453abf
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e1453abf
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e1453abf
Branch: refs/heads/master
Commit: e1453abf7d8075906abaf240d8f31465a94b6b25
Parents: 72adab9
Author: Robert Newson <ro...@cloudant.com>
Authored: Thu Feb 13 10:20:17 2014 +0000
Committer: Robert Newson <ro...@cloudant.com>
Committed: Thu Feb 13 10:20:17 2014 +0000
----------------------------------------------------------------------
src/couch_replicator/src/couch_replicator_api_wrap.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/e1453abf/src/couch_replicator/src/couch_replicator_api_wrap.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator/src/couch_replicator_api_wrap.erl b/src/couch_replicator/src/couch_replicator_api_wrap.erl
index 52e15b7..5a42bb3 100644
--- a/src/couch_replicator/src/couch_replicator_api_wrap.erl
+++ b/src/couch_replicator/src/couch_replicator_api_wrap.erl
@@ -536,11 +536,11 @@ options_to_query_args([{open_revs, Revs} | Rest], Acc) ->
options_to_query_args(Rest, [{"open_revs", JsonRevs} | Acc]).
--define(MAX_URL_LEN, 7000).
-
atts_since_arg(_UrlLen, [], Acc) ->
lists:reverse(Acc);
atts_since_arg(UrlLen, [PA | Rest], Acc) ->
+ MaxUrlLen = list_to_integer(
+ couch_config:get("replicator", "max_url_len", "7000")),
RevStr = couch_doc:rev_to_str(PA),
NewUrlLen = case Rest of
[] ->
@@ -550,7 +550,7 @@ atts_since_arg(UrlLen, [PA | Rest], Acc) ->
% plus 2 double quotes and a comma (% encoded)
UrlLen + size(RevStr) + 9
end,
- case NewUrlLen >= ?MAX_URL_LEN of
+ case NewUrlLen >= MaxUrlLen of
true ->
lists:reverse(Acc);
false ->
[2/2] couchdb commit: updated refs/heads/master to c6c3794
Posted by rn...@apache.org.
Merge branch '2059-feature-url-len'
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/c6c37945
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/c6c37945
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/c6c37945
Branch: refs/heads/master
Commit: c6c37945920983d0c2dec01e1cf85398bad58a52
Parents: e54d1d8 e1453ab
Author: Robert Newson <ro...@cloudant.com>
Authored: Thu Feb 13 11:36:12 2014 +0000
Committer: Robert Newson <ro...@cloudant.com>
Committed: Thu Feb 13 11:36:12 2014 +0000
----------------------------------------------------------------------
src/couch_replicator/src/couch_replicator_api_wrap.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------