anchor.diff:      gen_server:call(Pid, is_running).
   
   
  -update(Parent, Mod, State) ->
  -    update(Parent, nil, Mod, State).
  +update(Mod, State) ->
  +    update(nil, Mod, State).
   
   
   restart(Pid, IdxState) ->
  
positive.code: 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),
      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)],
  
negative.code: 
  
  %% API
  -export([start_link/2, run/2, is_running/1, update/2, restart/2]).
  
  %% gen_server callbacks
  -export([init/1, terminate/2, code_change/3]).
  