anchor.diff:  handle_call({update, IdxState}, _From, #st{idx=Idx, mod=Mod}=State) ->
       Args = [Mod:get(db_name, IdxState), Mod:get(idx_name, IdxState)],
       ?LOG_INFO("Starting index update for db: ~s idx: ~s", Args),
  -    Pid = spawn_link(fun() -> update(Idx, Mod, IdxState) end),
  +    Self = self(),
  +    Pid = spawn_link(fun() -> update(Self, Idx, Mod, IdxState) end),
       {reply, ok, State#st{pid=Pid}};
   handle_call({restart, IdxState}, _From, #st{idx=Idx, mod=Mod}=State) ->
       Args = [Mod:get(db_name, IdxState), Mod:get(idx_name, IdxState)],
  
positive.code:         end,
  
          {ok, FinalIdxState} = Mod:finish_update(LastIdxSt),
          exit({updated, FinalIdxState})
      end).
  
  
  
negative.code:     {ok, State}.
  
  
  update(Parent, Idx, Mod, IdxState) ->
      DbName = Mod:get(db_name, IdxState),
      CurrSeq = Mod:get(update_seq, IdxState),
      UpdateOpts = Mod:get(update_options, IdxState),
  