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/01/17 22:50:33 UTC
[33/50] git commit: Prepare to stop sending #group between nodes
Prepare to stop sending #group between nodes
BugzID: 13487
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/2b78ba05
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/2b78ba05
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/2b78ba05
Branch: refs/heads/import
Commit: 2b78ba05215e3eb8930db7c63a6fde2041235078
Parents: 1f0680f
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Tue Feb 26 16:07:39 2013 -0500
Committer: Adam Kocoloski <ad...@cloudant.com>
Committed: Tue Feb 26 16:07:39 2013 -0500
----------------------------------------------------------------------
src/fabric_rpc.erl | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/2b78ba05/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 00169fd..2a79583 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -137,6 +137,9 @@ map_view(DbName, DDoc, ViewName, QueryArgs) ->
end,
final_response(Total, Acc#view_acc.offset).
+reduce_view(DbName, #doc{} = DDoc, ViewName, QueryArgs) ->
+ Group = couch_view_group:design_doc_to_view_group(DDoc),
+ reduce_view(DbName, Group, ViewName, QueryArgs);
reduce_view(DbName, Group0, ViewName, QueryArgs) ->
erlang:put(io_priority, {interactive, DbName}),
{ok, Db} = get_or_create_db(DbName, []),