Skip to content

Commit

Permalink
Merge branch 'mas-i1765-tokenbucket' of https://github.com/basho/riak_kv
Browse files Browse the repository at this point in the history
 into mas-i1765-tokenbucket
  • Loading branch information
martinsumner committed Aug 8, 2020
2 parents e135df6 + 69c774c commit 5d56912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riak_kv_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ handle_command(tictacaae_exchangepoke, _Sender, State) ->
{_, SkipCount} ->
lager:warning("Skipping a tick due to non_zero " ++
"skip_count=~w", [SkipCount]),
{noreply, State#state{tictac_skiptick = SkipCount - 1}}
{noreply, State#state{tictac_skiptick = max(0, SkipCount - 1)}}
end;

handle_command(tictacaae_rebuildpoke, _Sender, State=#state{tictac_startup=TS})
Expand Down

0 comments on commit 5d56912

Please sign in to comment.