Updated Branches:
  refs/heads/1.2.x 0f465bd52 -> 8957829fb

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

Branch: refs/heads/1.2.x
Commit: 8957829fbfb3b85f407e0e1a865397ac9c05732f
Parents: 0f465bd
Author: Jan Lehnardt <[email protected]>
Authored: Sat Oct 29 17:39:51 2011 +0200
Committer: Jan Lehnardt <[email protected]>
Committed: Sat Oct 29 17:41:01 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/8957829f/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.

Reply via email to