app_queue: Make ordering of rrmemory/rrordered persist over add/remove members
authorJonathan Rose <jrose@digium.com>
Thu, 18 Oct 2012 21:25:22 +0000 (21:25 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 18 Oct 2012 21:25:22 +0000 (21:25 +0000)
commit42a83618ddbab41a73b81bee6abff3ed3dc8523c
treea491d74ac4657c05450a4b5a3b5277e8098f6ffe
parent200a25e2c9c6fbfe904ad7fb43a80bc1ccf0e39d
app_queue: Make ordering of rrmemory/rrordered persist over add/remove members

Prior to this patch, adding, removing or reloading  members to rrmemory would
cause the order to become completely jumbled. Now it behaves more or less like
rrordered other than the fact that it stores the members on a hash table rather
than a linked list. This patch also prevents removal of members and member
reloads from jumbling rrordered queues.

(issue AST-989)
Reported by: Thomas Arimont
Review: https://reviewboard.asterisk.org/r/2164/
........

Merged revisions 375216 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 375217 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 375219 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c