[Asterisk-code-review] serializer: set high/low alert levels on whole pool (asterisk[16])

Alexei Gradinari asteriskteam at digium.com
Thu Nov 7 11:27:28 CST 2019


Alexei Gradinari has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13165 )


Change subject: serializer: set high/low alert levels on whole pool
......................................................................

serializer: set high/low alert levels on whole pool

The current code sets alert levels starting from index 1.
Need to set on whole pool starting from index 0.

Change-Id: I5decbb43160954fb9a512f04302637fc666b6f5d
---
M main/serializer.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/65/13165/1

diff --git a/main/serializer.c b/main/serializer.c
index 280ada0..a10dc49 100644
--- a/main/serializer.c
+++ b/main/serializer.c
@@ -177,7 +177,7 @@
 		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",

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13165
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I5decbb43160954fb9a512f04302637fc666b6f5d
Gerrit-Change-Number: 13165
Gerrit-PatchSet: 1
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191107/e556e051/attachment.html>


More information about the asterisk-code-review mailing list