couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject fabric commit: updated refs/heads/3039-docid-nulls-in-all-docs-post to 0ba299d [Forced Update!]
Date Mon, 20 Jun 2016 15:33:09 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/3039-docid-nulls-in-all-docs-post 94243cb4c -> 0ba299dd8 (forced update)


Emit error row for a null doc id in POSTs to _all_docs

This is compatible behavior with CouchDB 1.x

Jira: COUCHDB-3039
BugzID: 68486


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

Branch: refs/heads/3039-docid-nulls-in-all-docs-post
Commit: 0ba299dd89e1430acbc6ef4c57220df6bcaf8676
Parents: 17af869
Author: Nick Vatamaniuc <vatamane@gmail.com>
Authored: Fri Jun 17 14:04:39 2016 -0400
Committer: Nick Vatamaniuc <vatamane@gmail.com>
Committed: Mon Jun 20 11:32:53 2016 -0400

----------------------------------------------------------------------
 src/fabric.erl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/0ba299dd/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index 7e1223b..5f3162a 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -466,10 +466,8 @@ name(Thing) ->
 
 docid(DocId) when is_list(DocId) ->
     list_to_binary(DocId);
-docid(DocId) when is_binary(DocId) ->
-    DocId;
 docid(DocId) ->
-    erlang:error({illegal_docid, DocId}).
+    DocId.
 
 docs(Docs) when is_list(Docs) ->
     [doc(D) || D <- Docs];


Mime
View raw message