Skip to content

Commit

Permalink
Merge branch 'riak_kv-0.14' of github.com:basho/riak_kv into riak_kv-…
Browse files Browse the repository at this point in the history
…0.14
  • Loading branch information
jaredmorrow committed May 11, 2011
2 parents 995eb21 + 1d370d0 commit ed74707
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/riak_kv_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
robj :: term(),
reqid :: non_neg_integer(),
bprops :: maybe_improper_list(),
prunetime :: undefined | non_neg_integer()}).
starttime :: non_neg_integer(),
prunetime :: undefined| non_neg_integer()}).

%% TODO: add -specs to all public API funcs, this module seems fragile?

Expand Down Expand Up @@ -288,6 +289,7 @@ do_put(Sender, {Bucket,_Key}=BKey, RObj, ReqID, StartTime, Options, State) ->
robj=RObj,
reqid=ReqID,
bprops=BProps,
starttime=StartTime,
prunetime=PruneTime},
Reply = perform_put(prepare_put(State, PutArgs), State, PutArgs),
riak_core_vnode:reply(Sender, Reply),
Expand All @@ -299,8 +301,9 @@ prepare_put(#state{mod=Mod,modstate=ModState}, #putargs{bkey=BKey,
robj=RObj,
reqid=ReqID,
bprops=BProps,
starttime=StartTime,
prunetime=PruneTime}) ->
case syntactic_put_merge(Mod, ModState, BKey, RObj, ReqID, PruneTime) of
case syntactic_put_merge(Mod, ModState, BKey, RObj, ReqID, StartTime) of
{oldobj, OldObj} ->
{false, OldObj};
{newobj, NewObj} ->
Expand Down

0 comments on commit ed74707

Please sign in to comment.