[Openais] [PATCH] Fix round robin message delivery for queue groups

Steven Dake sdake at redhat.com
Thu Aug 14 23:28:06 PDT 2008


merged

thanks for the patch!

On Thu, 2008-08-14 at 16:42 -0500, Ryan O'Hara wrote:
> Here is a patch that fixes round robin message delivery for queue
> groups. Please note that only queue group policy currently supported
> my the message service is round robin.
> 
> This patch keeps track of which queue is next (for message delivery)
> within each queue group (struct message_queue *rr_queue). Each time a
> message is sent to a queue group we increment the rr_queue pointer to
> the next queue in the group (see next_rr_queue function).
> 
> Also checks current rr_queue pointer when removing a queue from a
> group such that we increment the rr_queue pointer if we happen to be
> removing the queue that is currently points to.
> 
> Also included a few fixes for compiler warnings.
> 
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais



More information about the Openais mailing list