anchor.diff:                      %% uninteresting vbucket
                       ok;
                   false ->
  -                    change_vbucket_states(NewState)
  +                    update_vbucket_states(NewState)
               end,
               {reply, ok, NewState}
       end;
  
positive.code: 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)())).
  
  
  compute_index_states(WantedStates, RebalanceStates, ExistingVBuckets) ->
      AllVBs = lists:seq(0, erlang:length(WantedStates)-1),
  
negative.code:             %% previous group for current value of design document can
              %% still be alive; thus using maybe_define_group
              maybe_define_group(DDocId, State),
              State;
          true ->
              ok
      end,
      update_vbucket_states(State),
      {noreply, State};
  
  handle_info(refresh_usable_vbuckets,
  