Setting bucket properties from Erlang PBC API

Ryan Maclear ryan at lambdasphere.com
Thu Feb 10 16:15:48 EST 2011


Hi Dan,

Ok thanks - I'll just the REST API until the PBC API is updated.

Cheers,
Ryan

On 10 Feb 2011, at 11:00 PM, Dan Reverri wrote:

> Hi Ryan,
> 
> You are correct, the PBC API is currently only able to set n_val and allow_mult. The REST API has support for all bucket properties.
> 
> Feature request 370 has been opened to address the PBC API limitation:
> https://issues.basho.com/show_bug.cgi?id=370
> 
> Thanks,
> Dan
> 
> Daniel Reverri
> Developer Advocate
> Basho Technologies, Inc.
> dan at basho.com
> 
> 
> On Thu, Feb 10, 2011 at 12:41 PM, Ryan Maclear <ryan at lambdasphere.com> wrote:
> Hi All,
> 
> I want to set the postcommit hook on a bucket. I can set the bucket properties using riak_client, but this means that I need to be connected to the cluster to do this.
> 
> I want to be able to dynamically set post-commit hooks on buckets at run-time from my client using the Erlang PBC API. Working through the Erlang PBC code, the set_bucket function in riakc_pb_socket calls riakc_pb:pbify_rpbbucketprops/2. This function ignores all properties except n_val and allow_mult, so it appears that I cannot set the postcommit hook using this set_bucket function.
> 
> Is there any other way to do this that I've missed, or do I need to be connected to the cluster?
> 
> Thanks,
> Ryan
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110210/42cd5609/attachment.html>


More information about the riak-users mailing list