anchor.diff:  -compile(export_all).
   
   -define(DIR, ".qcdata").
  --define(T, gb_trees).
  --define(V, metric_vnode).
   -define(B, <<"bucket">>).
   -define(M, <<"metric">>).
   
  
positive.code:     Tr;
  
  tree_set(Tr, T, [V | R]) ->
      Tr1 = ?T:enter(T, V, Tr),
      tree_set(Tr1, T+1, R).
  
  new() ->
      {ok, S, _} = ?V:init([0]),
      T = ?T:empty(),
      {S, T}.
  
  repair({S, Tr}, T, Vs) ->
      case overlap(Tr, T, Vs) of
          [] ->
              Command = {repair, ?B, ?M, T, mmath_bin:from_list(Vs)},
              {noreply, S1} = ?V:handle_command(Command, sender, S),
              Tr1 = tree_set(Tr, T, Vs),
              {S1, Tr1};
          _ ->
  
negative.code:     case overlap(Tr, T, Vs) of
          [] ->
              Command = {mput, [{?B, ?M, T, mmath_bin:from_list(Vs)}]},
              {reply, ok, S1} = metric_vnode:handle_command(Command, sender, S),
              Tr1 = tree_set(Tr, T, Vs),
              {S1, Tr1};
          _ ->
  