Accessing existing obj in pre commit?

Kresten Krab Thorup krab at
Sat Apr 23 05:30:55 EDT 2011

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 <kresten at>

On 23/04/2011, at 07.27, "Jeffpk" <jeffpk at> 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
> riak-users at

More information about the riak-users mailing list