anchor.diff:                            [X || {set, directory, _} = X <- Changes]),
   
                {set, _, NewMemcached} = lists:keyfind({node, node(), memcached}, 2, Changes),
  -             ?assertEqual({dbdir, "dbdir"}, lists:keyfind(dbdir, 1, NewMemcached))
  +             ?assertEqual({dbdir, "dbdir"}, lists:keyfind(dbdir, 1, NewMemcached)),
  +
  +             ?assertMatch({set, {node, Node, memcached},
  +                           [{?METADATA_VCLOCK, _VClock} | _]} when Node =:= node(),
  +                          lists:keyfind({node, node(), memcached}, 2, Changes)),
  +             ?assertMatch({set, {node, Node, isasl},
  +                           [{?METADATA_VCLOCK, _VClock} | _]} when Node =:= node(),
  +                          lists:keyfind({node, node(), isasl}, 2, Changes)),
  +             ?assertMatch({set, {node, Node, ns_log},
  +                           [{?METADATA_VCLOCK, _VClock} | _]} when Node =:= node(),
  +                          lists:keyfind({node, node(), ns_log}, 2, Changes))
        end}.
  
positive.code:                [{dbdir, "dbdir"},
                  {bucket_engine, "old-be"},
                  {engines, "old-engines"}]}],
      Res = do_upgrade_config_from_1_6_to_1_7([OldCfg], DefaultCfg),
      ?assertEqual(lists:sort([{set, directory, default_directory},
                               {set, {node, node(), isasl}, [{path, default_isasl}]},
                               {set, {node, node(), memcached},
                                [{dbdir, "dbdir"},
                                 {bucket_engine, "new-be"},
  
negative.code:                               [{moxi, "moxi something"},
                                 {memcached, "memcached something"}]},
                               {set, {node, node(), ns_log}, default_log}]),
                   lists:sort(Strip(Res))).
  
  no_upgrade_on_1_7_1_test() ->
      ?assertEqual([], upgrade_config([[{{node, node(), config_version}, {1,7,1}}]])).
  