delete doe not work

Todd Lumley todd at thesolutionstudio.com
Wed Dec 9 21:30:56 EST 2009


Thanks Justin,

that tip is the fix.


todd


-----Original Message-----
From: Justin Sheehy [mailto:justin at basho.com]
Sent: December 9, 2009 9:20 PM
To: todd at thesolutionstudio.com
Cc: riak-users at lists.basho.com; ich at christian-krupa.de
Subject: Re: delete doe not work


On Wed, Dec 9, 2009 at 5:31 PM, Todd Lumley <todd at thesolutionstudio.com>
wrote:
> I'm also curious if anyone has had success in Deleting bucket key's via
> JIAK.  no luck here.
> is there a fix?

I do it all the time.  An example using the Python client:

>>> client = Jiak('127.0.0.1', 8098, 'jiak')
>>> obj = client.store('jiak_example', 'doctestkey', {'foo':2})
>>> client.fetch('jiak_example', 'doctestkey').get('object', {}).get('foo')
2
>>> client.delete('jiak_example', 'doctestkey')
>>> client.fetch('jiak_example', 'doctestkey').get('object', {}).get('foo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'get'
>>>

I am less fluent in PHP than in some of the other client languages
available, but from the trace above I think that I have found a bug in
jiak.php and checked in a change.  Please give it another try using a
fresh jiak.php from the current tip.

-Justin





More information about the riak-users mailing list