davisp commented on a change in pull request #1110: Make _design_docs to 
respect query parameters
URL: https://github.com/apache/couchdb/pull/1110#discussion_r164150972
 
 

 ##########
 File path: src/couch/src/couch_db.erl
 ##########
 @@ -1752,11 +1752,13 @@ set_namespace_range(Options, NS) ->
         true ->
             SK = select_gt(SK0, <<NS/binary, "/">>),
             EK = select_lt(EK0, <<NS/binary, "0">>),
-            [{start_key, SK}, {EKType, EK}];
+            [{dir, proplists:get_value(dir, Options, fwd)},
+                {start_key, SK}, {EKType, EK}];
         false ->
             SK = select_lt(SK0, <<NS/binary, "0">>),
             EK = select_gt(EK0, <<NS/binary, "/">>),
-            [{dir, rev}, {start_key, SK}, {EKType, EK}]
+            [{dir, proplists:get_value(dir, Options, rev)},
 
 Review comment:
   The default is fwd, not rev.

----------------------------------------------------------------
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