anchor.diff:                               false ->
                                    {DW, noreply}
                            end,
  -
  +    EffDW = case Postcommit of
  +                [] ->
  +                    EffDW1;
  +                _ ->
  +                    erlang:max(1, EffDW1)
  +            end,
  +    
       case {H, N, W, EffDW} of
           %% Workaround for bug transitioning from awaiting_w to awaiting_dw
           {[{w,_,_},{dw,_,_},{w,_,_},{fail,_,_}], 2, 2, 1} ->
  
positive.code:         false -> {newobj, ResObj}
      end.
  
  expect(H, N, W, DW, AllowMult, Options, Precommit) ->
      {EffDW, ReturnObj} = case proplists:get_value(returnbody, Options, false) of
                               true ->
                                   %% If returnbody is set, DW is set to a minimum
                                   %% of 1 to make the vnode return a response
  
negative.code: 
          AllowMult = false,
  
          ModDef = {<<"mod">>, atom_to_binary(?MODULE, latin1)},
          PrecommitProps = case Precommit of
                               [] ->
                                   [];
                               _ ->
                                   [{precommit, [{struct, [ModDef,
                                                           {<<"fun">>,
                                                            atom_to_binary(Hook,latin1)}]} || 
                                                    Hook <- Precommit]}]
                           end,
          PostcommitProps = case Postcommit of
                                [] ->
                                    [];
                                _ ->
                                    [{postcommit, [{struct, [ModDef,
                                                             {<<"fun">>,
                                                              atom_to_binary(Hook,latin1)}]} || 
                                                      Hook <- Postcommit]}]
                            end,
          
          application:set_env(riak_core,
                              default_bucket_props,
                              [{n_val, N},
                               {allow_mult, AllowMult} |
                               PrecommitProps ++
                               PostcommitProps ++
                               ?DEFAULT_BUCKET_PROPS]),
  
          {ok, PutPid} = riak_kv_put_fsm:start(?REQ_ID,
  