diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-08-18 14:09:22 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-18 14:24:57 -0400 |
commit | 1b40244642f1099df7b7addecf2ac47e52b8d636 (patch) | |
tree | f28263ebad3d0d7291dd66c41f3459aef732902f /apps/fabric/src/fabric_view_reduce.erl | |
parent | 7393d62b7b630bee50f609d0ae8125d33f7cda2b (diff) |
design_doc_to_view_group only needs the #doc{}
Diffstat (limited to 'apps/fabric/src/fabric_view_reduce.erl')
-rw-r--r-- | apps/fabric/src/fabric_view_reduce.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/fabric/src/fabric_view_reduce.erl b/apps/fabric/src/fabric_view_reduce.erl index ddde9f22..4b2d4c80 100644 --- a/apps/fabric/src/fabric_view_reduce.erl +++ b/apps/fabric/src/fabric_view_reduce.erl @@ -12,7 +12,7 @@ go(DbName, GroupId, View, Args, Callback, Acc0) when is_binary(GroupId) -> go(DbName, DDoc, VName, Args, Callback, Acc0) -> #group{def_lang=Lang, views=Views} = Group = - couch_view_group:design_doc_to_view_group(#db{name=DbName}, DDoc), + couch_view_group:design_doc_to_view_group(DDoc), {NthRed, View} = fabric_view:extract_view(nil, VName, Views, reduce), {VName, RedSrc} = lists:nth(NthRed, View#view.reduce_funs), Workers = lists:map(fun(#shard{name=Name, node=N} = Shard) -> |