2828% % <pre>
2929% % 19 - RpbGetBucketReq
3030% % 21 - RpbSetBucketReq
31+ % % 29 - RpbResetBucketReq
3132% % </pre>
3233% %
3334% % <p>This service produces the following responses:</p>
3435% %
3536% % <pre>
3637% % 20 - RpbGetBucketResp
3738% % 22 - RpbSetBucketResp
39+ % % 30 - RpbResetBucketResp
3840% % </pre>
3941% %
40- % % <p>The semantics are unchanged from their original
41- % % implementations.</p>
4242% % @end
4343-module (riak_core_pb_bucket ).
4444
@@ -56,7 +56,7 @@ init() ->
5656 undefined .
5757
5858% % @doc decode/2 callback. Decodes an incoming message.
59- decode (Code , Bin ) when Code == 19 ; Code == 21 ->
59+ decode (Code , Bin ) when Code == 19 ; Code == 21 ; Code == 29 ->
6060 {ok , riak_pb_codec :decode (Code , Bin )}.
6161
6262% % @doc encode/1 callback. Encodes an outgoing response message.
@@ -77,7 +77,12 @@ process(#rpbsetbucketreq{bucket=B, props = PbProps}, State) ->
7777 {reply , rpbsetbucketresp , State };
7878 {error , Details } ->
7979 {error , {format , " Invalid bucket properties: ~p " , [Details ]}, State }
80- end .
80+ end ;
81+
82+ % % Reset bucket properties
83+ process (# rpbresetbucketreq {bucket = B }, State ) ->
84+ riak_core_bucket :reset_bucket (B ),
85+ {reply , rpbresetbucketresp , State }.
8186
8287process_stream (_ , _ , State ) ->
8388 {ignore , State }.
0 commit comments