summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_view.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_view.erl')
-rw-r--r--src/couchdb/couch_view.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl
index 189bd98f..35bc80b6 100644
--- a/src/couchdb/couch_view.erl
+++ b/src/couchdb/couch_view.erl
@@ -61,15 +61,14 @@ get_group(Db, GroupId, Stale) ->
update_after -> 0;
_Else -> couch_db:get_update_seq(Db)
end,
- Result = {ok, Group} = couch_view_group:request_group(
- get_group_server(couch_db:name(Db), GroupId),
- MinUpdateSeq),
+ GroupPid = get_group_server(couch_db:name(Db), GroupId),
+ Result = couch_view_group:request_group(GroupPid, MinUpdateSeq),
case Stale of
update_after ->
% best effort, process might die
spawn(fun() ->
LastSeq = couch_db:get_update_seq(Db),
- couch_view_group:request_group(Group, LastSeq)
+ couch_view_group:request_group(GroupPid, LastSeq)
end);
_ ->
ok