This is a fix for queue group tracking in the message service.

If saMsgQueueGroupTrack is called with SA_TRACK_CURRENT and the
notification buffer has been allocated by the caller, then
numberOfItems returned should be equal to the number of members in the
message queue group.

Ryan
Index: openais/lib/msg.c
===================================================================
--- openais/lib/msg.c   (revision 1615)
+++ openais/lib/msg.c   (working copy)
@@ -1209,6 +1209,8 @@
                                error = SA_AIS_ERR_NO_SPACE;
                                goto error_exit;
                        }
+                       notificationBuffer->numberOfItems =
+                               res_lib_msg_queuegrouptrack.numberOfMembers;
                } else {
                        notificationBuffer->notification =
                                malloc (sizeof (SaMsgQueueGroupNotificationT) *
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to