Skip to content

Commit

Permalink
Merge pull request #144 from basho/bugfix/empty-cs-buckets-error
Browse files Browse the repository at this point in the history
Fix unhandled case of empty cs buckets response
  • Loading branch information
engelsanchez committed Dec 18, 2013
2 parents 46c3747 + 01cdc12 commit 8d33c02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/riakc_pb_socket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,8 @@ process_response(#request{msg = #rpbindexreq{return_terms=Terms}}, #rpbindexresp
RegularResponse = index_stream_result_to_index_result(StreamResponse),
RegularResponseWithContinuation = RegularResponse?INDEX_RESULTS{continuation=Cont},
{reply, {ok, RegularResponseWithContinuation}, State};
process_response(#request{msg = #rpbcsbucketreq{}}, rpbcsbucketresp, State) ->
{pending, State};
process_response(#request{msg = #rpbcsbucketreq{bucket=Bucket}}=Request, #rpbcsbucketresp{objects=Objects, done=Done, continuation=Cont}, State) ->
%% TEMP - cs specific message for fold_objects
ToSend = case Objects of
Expand Down

0 comments on commit 8d33c02

Please sign in to comment.