You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/09/10 01:11:55 UTC

couch-mrview commit: updated refs/heads/master to 2e46aba

Repository: couchdb-couch-mrview
Updated Branches:
  refs/heads/master d5487852a -> 2e46aba52


Relax the constraint of having a binary map function


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

Branch: refs/heads/master
Commit: 2e46aba52b1dce066fa5969c01f72c57524db007
Parents: d548785
Author: Paul J. Davis <pa...@gmail.com>
Authored: Tue Sep 9 18:11:29 2014 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Tue Sep 9 18:11:47 2014 -0500

----------------------------------------------------------------------
 src/couch_mrview_util.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/2e46aba5/src/couch_mrview_util.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_util.erl b/src/couch_mrview_util.erl
index 1836338..8f1a2d1 100644
--- a/src/couch_mrview_util.erl
+++ b/src/couch_mrview_util.erl
@@ -66,7 +66,7 @@ get_view(Db, DDoc, ViewName, Args0) ->
 ddoc_to_mrst(DbName, #doc{id=Id, body={Fields}}) ->
     MakeDict = fun({Name, {MRFuns}}, DictBySrcAcc) ->
         case couch_util:get_value(<<"map">>, MRFuns) of
-            MapSrc when is_binary(MapSrc) ->
+            MapSrc when MapSrc /= undefined ->
                 RedSrc = couch_util:get_value(<<"reduce">>, MRFuns, null),
                 {ViewOpts} = couch_util:get_value(<<"options">>, MRFuns, {[]}),
                 View = case dict:find({MapSrc, ViewOpts}, DictBySrcAcc) of