When the message servive destroys all messages in a queue's priority
area, we must reset the queue_used and message_count variables to
zero. This patch does that.

Index: services/msg.c
===================================================================
--- services/msg.c      (revision 1772)
+++ services/msg.c      (working copy)
@@ -1556,6 +1556,8 @@
 
                        list = queue->priority[i].message_head.next;
                }
+               queue->priority[i].queue_used = 0;
+               queue->priority[i].message_count = 0;
        }
        return;
 }
@@ -1628,6 +1630,8 @@
 
                        list = queue->priority[i].message_head.next;
                }
+               queue->priority[i].queue_used = 0;
+               queue->priority[i].message_count = 0;
        }
 
        global_queue_count -= 1;
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to