You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2018/07/26 11:39:02 UTC
[couchdb] 04/04: fixes
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch user-partitioned-dbs-wip
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 933a4a8392e343a6c2432807b8d1102ea84e014a
Author: Robert Newson <rn...@apache.org>
AuthorDate: Thu Jul 26 12:38:44 2018 +0100
fixes
---
src/couch_mrview/src/couch_mrview.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/couch_mrview/src/couch_mrview.erl b/src/couch_mrview/src/couch_mrview.erl
index e09483a..12a69b8 100644
--- a/src/couch_mrview/src/couch_mrview.erl
+++ b/src/couch_mrview/src/couch_mrview.erl
@@ -231,7 +231,8 @@ query_all_docs(Db, Args0, Callback, Acc) ->
couch_index_util:hexsig(crypto:hash(md5, term_to_binary(Info)))
end),
Args1 = Args0#mrargs{view_type=map},
- Args2 = couch_mrview_util:validate_and_update_args(Args1, [all_docs]),
+ Options = case Args0#mrargs.partitioned == true of true -> [all_docs]; false -> [] end,
+ Args2 = couch_mrview_util:validate_and_update_args(Args1, Options),
{ok, Acc1} = case Args2#mrargs.preflight_fun of
PFFun when is_function(PFFun, 2) -> PFFun(Sig, Acc);
_ -> {ok, Acc}