Skip to content

Commit

Permalink
MB-7873 Ensure blocked indexer tasks die if updater dies
Browse files Browse the repository at this point in the history
If the updater process dies (shutdown by view group for e.g.),
ensure the corresponding blocked indexer active task will die
as well. This is ensured by keeping both processes linked all
the time.

Change-Id: If326a001c3baa106ea0f2dd46717b881e794fd3b
Reviewed-on: http://review.couchbase.org/25018
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
  • Loading branch information
fdmanana committed Mar 8, 2013
1 parent 2995b40 commit c02fc33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/couch_set_view/src/couch_set_view_updater.erl
Expand Up @@ -188,7 +188,6 @@ update(WriterAcc, ActiveParts, PassiveParts, BlockedTime,
end), end),


Parent = self(), Parent = self(),
unlink(BarrierEntryPid),
Writer = spawn_link(fun() -> Writer = spawn_link(fun() ->
DDocIds = couch_set_view_util:get_ddoc_ids_with_sig(SetName, Group), DDocIds = couch_set_view_util:get_ddoc_ids_with_sig(SetName, Group),
couch_task_status:add_task([ couch_task_status:add_task([
Expand Down

0 comments on commit c02fc33

Please sign in to comment.