Skip to content

Commit

Permalink
Reset deferred queue length on change (#1868)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Jul 25, 2023
1 parent 44bfdc4 commit 960374a
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 @@ -349,6 +349,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 960374a

Please sign in to comment.