anchor.diff:      ?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).
  
positive.code:             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).
  
  
negative.code: 
      ok.
  
  -endif.
  