mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
We should only initialize a realtime queue when it is allocated, not every time we access it. This prevents the members ao2_container
from being reallocated every time the queue is accessed. I also removed a debug message I had accidentally left in on a previous commit. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1109,9 +1109,9 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as
|
||||
ast_mutex_lock(&q->lock);
|
||||
clear_queue(q);
|
||||
q->realtime = 1;
|
||||
init_queue(q); /* Ensure defaults for all parameters not set explicitly. */
|
||||
AST_LIST_INSERT_HEAD(&queues, q, list);
|
||||
}
|
||||
init_queue(q); /* Ensure defaults for all parameters not set explicitly. */
|
||||
|
||||
memset(tmpbuf, 0, sizeof(tmpbuf));
|
||||
for (v = queue_vars; v; v = v->next) {
|
||||
@@ -4056,7 +4056,6 @@ static int __queues_show(struct mansession *s, int manager, int fd, int argc, ch
|
||||
continue;
|
||||
}
|
||||
}
|
||||
ast_log(LOG_DEBUG, "MEMBERCOUNT is %d\n", q->membercount);
|
||||
max_buf[0] = '\0';
|
||||
max = max_buf;
|
||||
max_left = sizeof(max_buf);
|
||||
|
Reference in New Issue
Block a user