anchor.diff:  reset_master_vbucket(Bucket) ->
       gen_server:call(server(Bucket), reset_master_vbucket, infinity).
   
  --define(csv_call(Call, Args),
  -        %% hack to not introduce any variables in the caller environment
  -        ((fun () ->
  -                  %% we may want to downgrade it to ?views_debug at some point
  -                  ?views_debug("~nCalling couch_set_view:~p(~p)", [Call, Args]),
  -                  try
  -                      {__Time, __Result} = timer:tc(couch_set_view, Call, Args),
  -
  -                      ?views_debug("~ncouch_set_view:~p(~p) returned ~p in ~bms",
  -                                   [Call, Args, __Result, __Time div 1000]),
  -                      __Result
  -                  catch
  -                      __T:__E ->
  -                          ?views_debug("~ncouch_set_view:~p(~p) raised ~p:~p",
  -                                       [Call, Args, __T, __E]),
  -
  -                          %% rethrowing the exception
  -                          __Stack = erlang:get_stacktrace(),
  -                          erlang:raise(__T, __E, __Stack)
  -                  end
  -          end)())).
  -
  +csv_call(Call, Args) ->
  +    ?views_debug("~nCalling couch_set_view:~p(~p)", [Call, Args]),
  +    try
  +        {__Time, __Result} = timer:tc(couch_set_view, Call, Args),
  +
  +        ?views_debug("~ncouch_set_view:~p call returned ~p in ~bms",
  +                     [Call, __Result, __Time div 1000]),
  +        __Result
  +    catch
  +        __T:__E ->
  +            ?views_debug("~ncouch_set_view:~p(~p) raised ~p:~p",
  +                         [Call, Args, __T, __E]),
  +
  +            __Stack = erlang:get_stacktrace(),
  +            erlang:raise(__T, __E, __Stack)
  +    end.
   
   compute_index_states(WantedStates, RebalanceStates, ExistingVBuckets) ->
       AllVBs = lists:seq(0, erlang:length(WantedStates)-1),
  
positive.code:         true ->
              {reply, ok, State};
          false ->
              change_vbucket_states(State2),
              {reply, ok, State2}
      end;
  
  
negative.code:                               use_replica_index=UseReplicaIndex},
  
      try
          ok = csv_call(define_group, [SetName, DDocId, Params])
      catch
          throw:{not_found, deleted} ->
              %% The document has been deleted but we still think it's
  