couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject git commit: Gracefully handle "doc_ids"=null in doc id replication filter option.
Date Sat, 29 Oct 2011 15:40:47 GMT
Updated Branches:
  refs/heads/master 02e808ae1 -> bea76dbf5


Gracefully handle "doc_ids"=null in doc id replication filter option.

Closes COUCHDB-1248


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

Branch: refs/heads/master
Commit: bea76dbf523498890a9d59df5d6712ac9374a219
Parents: 02e808a
Author: Jan Lehnardt <jan@apache.org>
Authored: Sat Oct 29 17:39:51 2011 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sat Oct 29 17:39:51 2011 +0200

----------------------------------------------------------------------
 src/couchdb/couch_replicator_utils.erl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/bea76dbf/src/couchdb/couch_replicator_utils.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_replicator_utils.erl b/src/couchdb/couch_replicator_utils.erl
index 07630e7..6cc4db8 100644
--- a/src/couchdb/couch_replicator_utils.erl
+++ b/src/couchdb/couch_replicator_utils.erl
@@ -251,6 +251,8 @@ convert_options([{<<"filter">>, V} | R]) ->
     [{filter, V} | convert_options(R)];
 convert_options([{<<"query_params">>, V} | R]) ->
     [{query_params, V} | convert_options(R)];
+convert_options([{<<"doc_ids">>, null} | R]) ->
+    convert_options(R);
 convert_options([{<<"doc_ids">>, V} | R]) ->
     % Ensure same behaviour as old replicator: accept a list of percent
     % encoded doc IDs.


Mime
View raw message