iilyak commented on a change in pull request #1605: Feature/user partitioned 
databases
URL: https://github.com/apache/couchdb/pull/1605#discussion_r224170936
 
 

 ##########
 File path: src/mango/src/mango_idx.erl
 ##########
 @@ -119,6 +147,16 @@ validate_new(Idx, Db) ->
     Mod:validate_new(Idx, Db).
 
 
+validate_design_opts(Props) ->
+    case lists:keyfind(<<"options">>, 1, Props) of
+        {<<"options">>, {[{<<"partitioned">>, P}]}}
 
 Review comment:
   We are making a dangerous assumption here that options would contain a 
single element and it will be `{<<"partitioned">>, P}`.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to