You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/08/25 14:45:59 UTC

[GitHub] willholley commented on a change in pull request #775: Add selector support to json indexes

willholley commented on a change in pull request #775: Add selector support to json indexes
URL: https://github.com/apache/couchdb/pull/775#discussion_r135257594
 
 

 ##########
 File path: src/mango/src/mango_idx.erl
 ##########
 @@ -343,6 +357,14 @@ get_idx_name(Idx, Opts) ->
             gen_name(Idx, Opts)
     end.
 
+get_idx_selector(#idx{def = Def}) when Def =:= all_docs; Def =:= undefined ->
+    undefined;
+get_idx_selector(#idx{def = {Def}} = Idx) ->
 
 Review comment:
   Idx redundant - can be `get_idx_selector(#idx{def = {Def}}) ->`
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services