From 960374a923514aaf81f1f55198006d8000abd7bb Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Tue, 25 Jul 2023 13:31:55 +0100 Subject: [PATCH] Reset deferred queue length on change (#1868) --- src/riak_kv_replrtq_snk.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/riak_kv_replrtq_snk.erl b/src/riak_kv_replrtq_snk.erl index db45cb4f2..8120e067a 100644 --- a/src/riak_kv_replrtq_snk.erl +++ b/src/riak_kv_replrtq_snk.erl @@ -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,