Skip to content

Commit d3ca64d

Browse files
committed
Merge pull request #134 from basho/feature/csm/teams
Switch to update_type statements.
2 parents 3853d6e + bf74cb1 commit d3ca64d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/basho_bench_driver_riakc_pb.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ warn_bucket_mr_correctness(_) ->
149149
%% Write information about the team.
150150
run({team, write}, KeyGen, _ValueGen, State) ->
151151
Key = integer_to_list(KeyGen()),
152-
Result = riakc_pb_socket:modify_type(State#state.pid,
152+
Result = riakc_pb_socket:update_type(State#state.pid,
153153
fun(M) ->
154154
riakc_map:update(
155155
{<<"name">>, register},
@@ -207,7 +207,7 @@ run({team, player, removal}, KeyGen, ValueGen, State) ->
207207
true ->
208208
Value = hd(Members),
209209
lager:info("Team read succeeded"),
210-
Result2 = riakc_pb_socket:modify_type(State#state.pid,
210+
Result2 = riakc_pb_socket:update_type(State#state.pid,
211211
fun(M2) ->
212212
riakc_map:update(
213213
{<<"members">>, set},
@@ -244,7 +244,7 @@ run({team, player, removal}, KeyGen, ValueGen, State) ->
244244
run({team, player, addition}, KeyGen, ValueGen, State) ->
245245
Key = integer_to_list(KeyGen()),
246246
Value = "Team member " ++ integer_to_list(ValueGen()),
247-
Result = riakc_pb_socket:modify_type(State#state.pid,
247+
Result = riakc_pb_socket:update_type(State#state.pid,
248248
fun(M) ->
249249
riakc_map:update(
250250
{<<"members">>, set},
@@ -269,7 +269,7 @@ run({team, player, addition}, KeyGen, ValueGen, State) ->
269269
run({game, completed}, KeyGen, ValueGen, State) ->
270270
Key = integer_to_list(KeyGen()),
271271
Value = ValueGen(),
272-
Result = riakc_pb_socket:modify_type(State#state.pid,
272+
Result = riakc_pb_socket:update_type(State#state.pid,
273273
fun(M) ->
274274
riakc_map:update(
275275
{<<"score">>, counter},

0 commit comments

Comments
 (0)