Permalink
Browse files

Invoke couch_view_updater with the proper arguments

This fixes stale=update_after.
  • Loading branch information...
1 parent db23528 commit 42a471caa33c1fa753cf9e9221d678fc0d0f714f @kocolosk kocolosk committed Mar 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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};

0 comments on commit 42a471c

Please sign in to comment.