Setting bucket properties from Erlang PBC API
ryan at lambdasphere.com
Thu Feb 10 16:15:48 EST 2011
Ok thanks - I'll just the REST API until the PBC API is updated.
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:
> 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?
> riak-users mailing list
> riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users