summaryrefslogtreecommitdiff
path: root/apps/couch/src/couch_view_group.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2012-03-20 00:52:54 -0400
committerAdam Kocoloski <adam@cloudant.com>2012-03-20 00:53:45 -0400
commit42a471caa33c1fa753cf9e9221d678fc0d0f714f (patch)
treea830ff630e4bb63c334dd05039e334c2929aa37b /apps/couch/src/couch_view_group.erl
parentdb23528537fed7b9b0e85d3f3617f560cb52d630 (diff)
Invoke couch_view_updater with the proper arguments
This fixes stale=update_after.
Diffstat (limited to 'apps/couch/src/couch_view_group.erl')
-rw-r--r--apps/couch/src/couch_view_group.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/couch/src/couch_view_group.erl b/apps/couch/src/couch_view_group.erl
index 75644d6b..27f750fa 100644
--- a/apps/couch/src/couch_view_group.erl
+++ b/apps/couch/src/couch_view_group.erl
@@ -223,10 +223,11 @@ handle_call({compact_done, NewGroup}, _From, State) ->
handle_cast({update_group, RequestSeq},
#group_state{
+ db_name = DbName,
group=#group{current_seq=Seq}=Group,
updater_pid=nil}=State) when RequestSeq > Seq ->
Owner = self(),
- Pid = spawn_link(fun()-> couch_view_updater:update(Owner, Group) end),
+ Pid = spawn_link(fun()-> couch_view_updater:update(Owner, Group, DbName) end),
{noreply, State#group_state{updater_pid=Pid}};
handle_cast({update_group, _RequestSeq}, State) ->
{noreply, State};