You can see how I have done it in the riak_link_index project.  In most cases, 
the "old" value is available as the part of the object which is not 
update_value/metadata, but in some cases you'll have to get the old value.

--
301 Moved Permanently
Email: Kresten Krab Thorup <[email protected]>

On 23/04/2011, at 07.27, "Jeffpk" <[email protected]> wrote:

> Well, I worked around my last issue and I'm looking at risk again,  in order 
> to use the disambiguating logic I want I need to do a pre commit validation 
> that involves the new state that is being committed and the old state that is 
> currently stored. I believe couch gives you both of these in pre commit but 
> it seemed from the docs that risk only hand you the candidate state?  Is 
> there an efficient way to access the existing state from inside the pre 
> commit hook?
> 
> Sent from my iPa
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to