From 91ce15dce0200c3289670ee7bfd2e3c7896e7e77 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 20 Mar 2012 00:52:54 -0400 Subject: Invoke couch_view_updater with the proper arguments This fixes stale=update_after. --- apps/couch/src/couch_view_group.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps') 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}; -- cgit v1.2.3