When is Vclock generated?
rexxe98 at gmail.com
Thu Jul 21 18:13:43 EDT 2011
I'm looking to store the vclock on my object to be used for
versioning. Currently, when I get the object from Riak I fill in the
version with the vclock from Riak (which I use to determine if the
object is persistent and for passing back to Riak when putting) and
then when the object is saved it saves the version as the previous
vclock value. I'm wondering when the vclock is actually generated.
Can I write a pre-commit hook that fills in the version so it has the
most updated value or is there no way for me to do it. It's not a
huge deal because the version value in the db is immediately updated
upon loading the data from Riak, but I just feel like it would make
things more consistent if I could have the version matching the
Thanks for any help!
More information about the riak-users