anchor.diff:      Bucket = <<"testbucket">>,
       Key = <<"testkey">>,
       Timeout = 60000,
  -    riak_kv_delete_sup:start_delete(node(), [RequestId, Bucket, Key, [{w,W}], Timeout, self()]),
  +    riak_kv_delete_sup:start_delete(node(), [RequestId, Bucket, Key, [{w,W}],
  +            Timeout, self(), undefined, vclock:fresh()]),
       %% Wait for error response
       receive
           {_RequestId, Result} ->
  
positive.code:     Bucket = <<"testbucket">>,
      Key = <<"testkey">>,
      Timeout = 60000,
      riak_kv_delete_sup:start_delete(node(), [RequestId, Bucket, Key, [{pw,PW}], Timeout, self()]),
      %% Wait for error response
      receive
          {_RequestId, Result} ->
  
negative.code:                 error ->
                      {error, {pr_val_violation, PR0}};
                  PR ->
                      {R, PR}
             end
      end.
  
  get_w_options(Bucket, Options) ->
      {ok, Ring} = riak_core_ring_manager:get_my_ring(),
      BucketProps = riak_core_bucket:get_bucket(Bucket, Ring),
      N = proplists:get_value(n_val,BucketProps),
      %% specifying R/W AND RW together doesn't make sense, so check if R or W
      %is defined first. If not, use RW or default.
      W = case proplists:is_defined(w, Options) of
          true ->
              HasRW = false,
              W0 = proplists:get_value(w, Options, default),
              W1 = riak_kv_util:expand_rw_value(w, W0, BucketProps, N),
              W1;
          false ->
              HasRW = true,
              RW0 = proplists:get_value(rw, Options, default),
              RW = riak_kv_util:expand_rw_value(rw, RW0, BucketProps, N),
              RW
      end,
      %% check for errors
      case {W, HasRW} of
          {error, false} ->
              {error, {w_val_violation, proplists:get_value(w, Options)}};
          {error, true} ->
              {error, {rw_val_violation, proplists:get_value(rw, Options)}};
          _ ->
              PW0 = proplists:get_value(pw, Options, default),
              case riak_kv_util:expand_rw_value(pw, PW0, BucketProps, N) of
                  error ->
                      {error, {pw_val_violation, PW0}};
                  PW ->
                      DW0 = proplists:get_value(dw, Options, default),
                      case riak_kv_util:expand_rw_value(dw, DW0, BucketProps, N) of
                          error ->
                              {error, {dw_val_violation, DW0}};
                          DW ->
                              {W, PW, DW}
                      end
              end
      end.
  
  
  
  
  
  