Skip to content

Commit

Permalink
Correct Key/Clock handling
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Nov 14, 2023
1 parent 3b6ad6e commit 5fd18b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/riakc_pb_socket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2771,10 +2771,9 @@ process_response(#request{msg = #rpbaaefoldfindkeysreq{}},
{ok, {keys, lists:map(fun unpack_keycount_fun/1, KeysCount)}},
State};
process_response(#request{msg = #rpbaaefoldfindtombsreq{}},
#rpbaaefoldkeycountresp{keys_count = KeysDH},
#rpbaaefoldkeyvalueresp{response_type = <<"clock">>} = Rsp,
State) ->
%% In this case the integer value in each entry is not a count but a
%% delete hash
KeysNClocks = Rsp#rpbaaefoldkeyvalueresp.keys_value,
{reply,
{ok, {keys, lists:map(fun unpack_keycount_fun/1, KeysDH)}},
State};
Expand Down

0 comments on commit 5fd18b8

Please sign in to comment.