anchor.diff:  handle_cast(stop, State)            -> {stop, shutdown, State}.
   handle_info(_Info, State)           -> {noreply, State}.
   
  -gen_server_reply_next_state(Reply) ->
  -    case Reply of
  -        {reply,_,NewState} -> NewState
  -    end.
  -
  -%% ns_config is implemented as a pair of gen_servers. One is real
  -%% ns_config and the other is it's read-only replica. Replica handles all
  -%% ns_config:get requests, while real ns_config makes sure that all
  -%% state changes are synchronously delivered to replica.
  -%%
  -%% Because main ns_config mutation operations can be arbitrarily
  -%% expensive, handling ns_config:get requests on main process may
  -%% cause serious delays and even timeouts handling them.
  -%%
  -%% Replica process makes sure ns_config:get, which is the most often
  -%% used service of ns_config, is always responsive.
  -handle_call(get, _From, State) ->
  -    {reply, State, State};
  -handle_call({replica_set, NextState}, _From, _State) ->
  -    {reply, ok, NextState};
  -handle_call(Msg, From, State) ->
  -    Reply = do_handle_call(Msg, From, State),
  -    NextState = gen_server_reply_next_state(Reply),
  -    if
  -        NextState =/= State ->
  -            try gen_server:call(ns_config_replica, {replica_set, NextState})
  -            catch
  -                Type:What ->
  -                    error_logger:error_msg("failed replica_set! type:~p,what:~p~ntrace:~n~p~n",
  -                                           [Type, What, erlang:get_stacktrace()]),
  -                    erlang:Type(What)
  -            end;
  -        true ->
  -            ok
  -    end,
  -    Reply.
  -
  -do_handle_call(reload, _From, State) ->
  +handle_call(reload, _From, State) ->
       case init(State#config.init) of
           {ok, State2}  -> {reply, ok, State2};
           {stop, Error} -> ns_log:log(?MODULE, ?RELOAD_FAILED, "reload failed: ~p",
  
positive.code: % The Config object can be passed to the search*() related set
  % of functions.
  
  get()              -> gen_server:call(ns_config_replica, get).
  get(Node)          -> ?MODULE:get(Node, ?DEFAULT_TIMEOUT).
  get(Node, Timeout) -> gen_server:call({ns_config_replica, Node}, get, Timeout).
  
  get_diag() -> config_dynamic(ns_config:get()).
  
  
negative.code:                            State),
      case State2 =/= State of
          true ->
              case handle_call(resave, From, State2) of
                  {reply, ok, State3} = Result ->
                      DynOld = lists:map(fun strip_metadata/1, config_dynamic(State)),
                      DynNew = lists:map(fun strip_metadata/1, config_dynamic(State3)),
  