Accessing existing obj in pre commit?
Kresten Krab Thorup
krab at trifork.com
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 krab.dk>
On 23/04/2011, at 07.27, "Jeffpk" <jeffpk at nphos.com> 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 lists.basho.com
More information about the riak-users