anchor.diff:  -module(cb_config_couch_sync).
   
   -behaviour(gen_server).
  +
  +-include_lib("eunit/include/eunit.hrl").
   
   -export([start_link/0]).
   
  
positive.code:     State#state{have_notable_change = false,
                  sync_started = true}.
  
  do_config_sync() ->
      Config = ns_config:get(),
      case ns_config:search(Config, {node, node(), couchdb}) of
          {value, CouchDBCfg} ->
              update_couchdb_config(CouchDBCfg);
          _ -> ok
      end.
  
  update_couchdb_config(Config) ->
      %% Updates couch config. Returns true if couchdb needs to be restarted.
      MaybeUpdate =
          fun ({Key, Value}) ->
  
negative.code: %% Auxiliary functions.
  
  is_notable_event({{node, Node, couchdb}, _}) when Node =:= node() -> true;
  is_notable_event({buckets, _}) -> true;
  is_notable_event({autocompaction, _}) -> true;
  is_notable_event(_) -> false.
  
  handle_config_event(KVPair, State) ->
  