Created
January 6, 2014 18:14
-
-
Save calston/8286950 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> a = bucket.new('a', data={'a':1}) | |
>>> b = bucket.new('a', data={'b':1}) | |
>>> a.store() | |
<riak.riak_object.RiakObject object at 0x155c3d0> | |
>>> b.store() | |
<riak.riak_object.RiakObject object at 0x155c8d0> | |
>>> bucket.get('a').data | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/home/colin/semita/frontend/ve/local/lib/python2.7/site-packages/riak/riak_object.py", line 45, in _getter | |
raise ConflictError() | |
riak.ConflictError: 'Object in conflict' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment