Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger batch correctly at each size #4

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/riak_kv_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@ handle_aaefold({reap_tombs,
case TombHashAcc of
{BatchList, Count, local} ->
NewCount = Count + 1,
case NewCount div ?REAPER_BATCH_SIZE of
case NewCount rem ?REAPER_BATCH_SIZE of
0 ->
riak_kv_reaper:bulk_request_reap(
[{{BF, KF}, DH}|BatchList]
Expand Down Expand Up @@ -2057,7 +2057,7 @@ handle_aaefold({erase_keys,
case EraseKeyAcc of
{BatchList, Count, local} ->
NewCount = Count + 1,
case NewCount div ?ERASER_BATCH_SIZE of
case NewCount rem ?ERASER_BATCH_SIZE of
0 ->
riak_kv_eraser:bulk_request_delete(
[{{BF, KF}, VV}|BatchList]),
Expand Down
Loading