Question about vclock and HTTP put.

Ken Sedgwick ksedgwic at bonsai.com
Tue Jan 5 20:15:30 EST 2010


Greetings!

I'm not sure how to specify the vclock when I'm updating bucket value ...

I'm using CURL from C++.

I'm currently adding a vclock field to the JSON value that I put:

{"bucket":"pudd","key":"991b010000000000",\
"object":{"val":"000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},\
"vclock":"a85hYGBgzGDKBVIsTDoyrzOYEhnzWBk2umw5wpcFAA==",\
"links":[]}

Is this the correct thing to do?  I've noticed the material referring
to a X-Riak-Vclock HTTP header on the web.  Is this a better route?

What is the vtag for?  Do I need to do anything with it?

Many thanks in advance!

Ken

-- 
Ken Sedgwick
Bonsai Software, Inc.
http://www.bonsai.com/ken/
(510) 610-4162
ken+5a4 at bonsai.com
Public Key: http://www.bonsai.com/ken/ken.asc
GPG Fingerprint: 851E 3B07 E586 0843 9434  5CC7 4033 3B9B 3F3F 9640




More information about the riak-users mailing list