couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [02/23] couch-replicator commit: updated refs/heads/1843-feature-bigcouch to 4965655
Date Thu, 01 May 2014 14:06:49 GMT
COUCHDB-1788 - tolerate undefined source/target when reading _replicator docs


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/7c9704c4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/7c9704c4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/7c9704c4

Branch: refs/heads/1843-feature-bigcouch
Commit: 7c9704c449a1883843491ab68c34a1b7b92f28c9
Parents: 01e49b4
Author: Robert Newson <rnewson@apache.org>
Authored: Mon May 6 10:34:04 2013 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Mon May 6 10:34:04 2013 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/7c9704c4/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_manager.erl b/src/couch_replicator_manager.erl
index fec44df..bbb0e11 100644
--- a/src/couch_replicator_manager.erl
+++ b/src/couch_replicator_manager.erl
@@ -692,6 +692,8 @@ after_doc_read(#doc{body = {Body}} = Doc, #db{user_ctx=UserCtx} = Db)
->
     end.
 
 
+strip_credentials(undefined) ->
+    undefined;
 strip_credentials(Url) when is_binary(Url) ->
     re:replace(Url,
         "http(s)?://(?:[^:]+):[^@]+@(.*)$",


Mime
View raw message