anchor.diff:      {noreply, St}.
   
   
  -handle_info({'DOWN', Ref, _, _, Reason}, #st{watchdog={_,Ref}}=St) ->
  -    couch_log:notice("~s watchdog died: ~w", [?MODULE, Reason]),
  -    erlang:send_after(60000, self(), spawn_watchdog),
  -    {noreply, St#st{watchdog=undefined}};
   handle_info({'DOWN', Ref, process, Pid, _Reason}, St) ->
       case khash:get(St#st.by_pid, Pid) of
           {Ref, OldDbNames} ->
  
positive.code: 
  code_change(_OldVsn, St, _Extra) ->
      {ok, St}.
  
  
  watchdog() ->
      timer:sleep(300000),
      Handlers = gen_event:which_handlers(couch_db_update),
      case length(Handlers) > 0 of
          true ->
              supervisor:terminate_child(
                      couch_primary_services, couch_db_update_event),
              supervisor:restart_child(
                      couch_primary_services, couch_db_update_event);
          false ->
              ok
      end,
      ?MODULE:watchdog().
  
  
  notify_listeners(ByDbName, DbName, Event) ->
  
negative.code:     {noreply, St};
  
  
  handle_info(Msg, St) ->
      couch_log:notice("~s ignoring info ~w", [?MODULE, Msg]),
      {noreply, St}.
  