This patch fixes the evs service to properly deliver messages.

Regards
-steve
Index: test/testevs.c
===================================================================
--- test/testevs.c	(revision 1651)
+++ test/testevs.c	(working copy)
@@ -132,13 +132,13 @@
 	 * Demonstrate evs_mcast_joined
 	 */
 	for (i = 0; i < 500; i++) {
-		sprintf (buffer, "evs_mcast_joined: This is message %d", i);
-#ifdef COMPILE_OUT
+iov.iov_len = sprintf (buffer, "evs_mcast_joined: This is message %d", i);
+/*
 		sprintf (buffer,
 		"%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d",
 			i, i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,
 			i, i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i,  i);
-#endif
+*/
 try_again_one:
 		result = evs_mcast_joined (handle, EVS_TYPE_AGREED,
 			&iov, 1);
@@ -157,7 +157,7 @@
 	 */
 	delivery_string = "evs_mcast_groups";
 	for (i = 0; i < 500; i++) {
-		sprintf (buffer, "evs_mcast_groups: This is message %d", i);
+		iov.iov_len = sprintf (buffer, "evs_mcast_groups: This is message %d", i);
 try_again_two:
 		result = evs_mcast_groups (handle, EVS_TYPE_AGREED,
 			 &groups[1], 1, &iov, 1);
Index: exec/evs.c
===================================================================
--- exec/evs.c	(revision 1651)
+++ exec/evs.c	(working copy)
@@ -263,11 +263,6 @@
 	list_init (&evs_pd->list);
 	list_add (&evs_pd->list, &confchg_notify);
 
-	openais_dispatch_send (
-		conn,
-		&res_evs_confchg_callback,
-		sizeof (res_evs_confchg_callback));
-
 	return (0);
 }
 
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to