Initializing a commit hook

Luke Bakken lbakken at basho.com
Fri Nov 18 14:15:33 EST 2016


Mav -

Please remember to use "Reply All" so that the riak-users list can
learn from what you find out. Thanks.

Thebucket = riak_object:bucket(Object),

Can you check to see if "Thebucket" is really a two-tuple of
"{BucketType, Bucket}"? I believe that is what is returned.

--
Luke Bakken
Engineer
lbakken at basho.com

On Fri, Nov 18, 2016 at 10:54 AM, Mav erick <mav4001 at gmail.com> wrote:
> I have some initializing to do - like connecting to a notification server,
> before I can use the commit hook. But I think I have figured that out now
> that I learnt about supervisors and OTP
>
> I have one other question though ...
> How do I get the bucket type of the bucket of the key that was committed ?
>
> I am using these to get the key and bucket names. But I cant seem to find a
> call to get the bucket's bucket type
>
>   Thebucket = riak_object:bucket(Object),
>   Thekey = riak_object:key(Object),
>
> Thanks !
>
> On 18 November 2016 at 12:14, Luke Bakken <lbakken at basho.com> wrote:
>>
>> Mav -
>>
>> Can you go into more detail? The subject of your message is
>> "initializing a commit hook".
>>
>> --
>> Luke Bakken
>> Engineer
>> lbakken at basho.com
>>
>> On Thu, Nov 17, 2016 at 9:09 AM, Mav erick <mav4001 at gmail.com> wrote:
>> > Folks
>> >
>> > Is there way RIAK can call an erlang function in a module when RIAK
>> > starts
>> > up ?
>> >
>> > Thanks
>> > Mav
>
>




More information about the riak-users mailing list