summaryrefslogtreecommitdiff
path: root/apps/fabric
diff options
context:
space:
mode:
Diffstat (limited to 'apps/fabric')
-rw-r--r--apps/fabric/src/fabric_group_info.erl2
-rw-r--r--apps/fabric/src/fabric_rpc.erl2
-rw-r--r--apps/fabric/src/fabric_view_reduce.erl2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/fabric/src/fabric_group_info.erl b/apps/fabric/src/fabric_group_info.erl
index 04605a66..7dfb4888 100644
--- a/apps/fabric/src/fabric_group_info.erl
+++ b/apps/fabric/src/fabric_group_info.erl
@@ -11,7 +11,7 @@ go(DbName, GroupId) when is_binary(GroupId) ->
go(DbName, DDoc);
go(DbName, #doc{} = DDoc) ->
- Group = couch_view_group:design_doc_to_view_group(#db{name=DbName}, DDoc),
+ Group = couch_view_group:design_doc_to_view_group(DDoc),
Shards = mem3:shards(DbName),
Workers = fabric_util:submit_jobs(Shards, group_info, [Group]),
Acc0 = {fabric_dict:init(Workers, nil), []},
diff --git a/apps/fabric/src/fabric_rpc.erl b/apps/fabric/src/fabric_rpc.erl
index f56e3f68..24c04ea8 100644
--- a/apps/fabric/src/fabric_rpc.erl
+++ b/apps/fabric/src/fabric_rpc.erl
@@ -80,7 +80,7 @@ map_view(DbName, DDoc, ViewName, QueryArgs) ->
view_type = ViewType
} = QueryArgs,
MinSeq = if Stale == ok -> 0; true -> couch_db:get_update_seq(Db) end,
- Group0 = couch_view_group:design_doc_to_view_group(Db, DDoc),
+ Group0 = couch_view_group:design_doc_to_view_group(DDoc),
{ok, Pid} = gen_server:call(couch_view, {get_group_server, DbName, Group0}),
{ok, Group} = couch_view_group:request_group(Pid, MinSeq),
View = fabric_view:extract_view(Pid, ViewName, Group#group.views, ViewType),
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) ->