anchor.diff:              Bucket
       end.
   
  -upgrade_xdcr_settings(Config) ->
  -    Mapping0 = [{list_to_atom("xdcr_" ++ atom_to_list(Key)), {xdcr, Key}}
  -                || {Key, _, _, _} <- xdc_settings:settings_specs()],
  -    Mapping = dict:from_list(Mapping0),
  -    ns_config:fold(
  -      fun (Key, Value, Acc) ->
  -              case dict:find(Key, Mapping) of
  -                  {ok, NewKey} ->
  -                      [{set, NewKey, Value} | Acc];
  -                  error ->
  -                      Acc
  -              end
  -      end, [], Config).
   
   -ifdef(EUNIT).
   
  
positive.code:     ?log_info("Performing online config upgrade to 2.0 version"),
      maybe_add_buckets_uuids(Config).
  
  upgrade_config_from_2_0_to_2_2(Config) ->
      ?log_info("Performing online config upgrade to 2.2 version"),
      upgrade_xdcr_settings(Config).
  
  maybe_add_vbucket_map_history(Config) ->
      maybe_add_vbucket_map_history(Config, ?VBMAP_HISTORY_SIZE).
  
negative.code:             [{set, dynamic_config_version, [2, 0]} |
               upgrade_config_from_pre_2_0_to_2_0(Config)];
          {value, FinalVersion} ->
              []
      end.
  
  upgrade_config_on_join_from_pre_2_0_to_2_0(Config) ->
  