]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
serializer: set high/low alert levels on whole pool
authorAlexei Gradinari <alex2grad@gmail.com>
Thu, 7 Nov 2019 16:56:57 +0000 (11:56 -0500)
committerAlexei Gradinari <alex2grad@gmail.com>
Mon, 18 Nov 2019 16:03:29 +0000 (11:03 -0500)
The current code sets alert levels starting from index 1.
Need to set on whole pool starting from index 0.

Change-Id: I5decbb43160954fb9a512f04302637fc666b6f5d

main/serializer.c

index 280ada03b8dc98da50cdd760d22df072bc53779d..a10dc496d6d84dbe3a3b995a6c3f4768b2df6fe0 100644 (file)
@@ -177,7 +177,7 @@ int ast_serializer_pool_set_alerts(struct ast_serializer_pool *pool, long high,
                tps_queue_low = -1;
        }
 
-       for (idx = 1; idx < AST_VECTOR_SIZE(&pool->serializers); ++idx) {
+       for (idx = 0; idx < AST_VECTOR_SIZE(&pool->serializers); ++idx) {
                struct ast_taskprocessor *cur = AST_VECTOR_GET(&pool->serializers, idx);
                if (ast_taskprocessor_alert_set_levels(cur, tps_queue_low, tps_queue_high)) {
                        ast_log(AST_LOG_WARNING, "Failed to set alert levels for serializer '%s'.\n",