Skip to content

Commit

Permalink
all tuples for put and get (partially revert 4faf3cb)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Zavada committed Apr 13, 2016
1 parent edc6297 commit b9a0bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/riak_kv_ts_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ get_data(Key, Table, Mod0, Options) ->
[] ->
{error, notfound};
Record ->
{ok, Record}
{ok, list_to_tuple(Record)}
end;
ErrorReason2 ->
ErrorReason2
Expand Down
3 changes: 1 addition & 2 deletions src/riak_kv_ts_svc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,8 @@ wait_until_active(Table, State, Seconds) ->

%% NB: since this method deals with PB and TTB messages, the message must be fully
%% decoded before sub_tsqueryreq is called
sub_tsputreq(Mod, _DDL, #tsputreq{table = Table, rows = RowsAsLists},
sub_tsputreq(Mod, _DDL, #tsputreq{table = Table, rows = Rows},
State) ->
Rows = [list_to_tuple(R) || R <- RowsAsLists],
case riak_kv_ts_util:validate_rows(Mod, Rows) of
[] ->
case riak_kv_ts_api:put_data(Rows, Table, Mod) of
Expand Down

0 comments on commit b9a0bff

Please sign in to comment.