Skip to content

Commit

Permalink
Reset deferred queue length on change
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Jul 21, 2023
1 parent ba58a97 commit cee31e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/riak_kv_replrtq_snk.erl
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ handle_call({worker_count, QueueN, WorkerCount, PerPeerLimit}, _From, State) ->
SinkWork0 =
SinkWork#sink_work{work_queue = WorkQueue,
minimum_queue_length = QueueLength,
deferred_queue_length = 0,
max_worker_count = WorkerCount},
W0 =
lists:keyreplace(QueueN, 1, State#state.work,
Expand Down

0 comments on commit cee31e9

Please sign in to comment.