Understanding put if_not_modified.

2011-09-18 Thread Igor Karymov
Hi all. I wrote example for understanding subj, but result is unexpected. I'm trying to realize simple autoincrement counter. Where i'm wrong? My code: https://gist.github.com/1224897 Result look as: ... reason <<"modified">> reason <<"modified">> reason <<"modified">> reason <<"modified">> reas

Re: Understanding put if_not_modified.

2011-09-18 Thread Justin Sheehy
Hi, Igor. Riak (quite intentionally, for availability reasons) does not provide any sort of global transactions or user-exposed locking. One result of this is that you can't do exactly what you tried -- or least not that simply. You might be interested in https://github.com/mochi/statebox -Ju