Patch attached to fix

On Mon, 2009-06-29 at 16:38 +0200, Wojtek Meler wrote:
> Hi!
> I've noticed a problem with tracking object change with corosync-objctl 
> on solaris:
> 
> corosync -c test
> corosync -t test  
> corosync -w test.one=1
> 
> core 'core' of 1987:    corosync-objctl -t test
>  08053e74 confdb_dispatch (0, 7be9c1bd, 2, 1) + 1d4
>  08053363 main     (3, 80473f8, 8047408) + b57
>  080520ec _start   (3, 8047544, 8047554, 8047557, 0, 804755c) + 80
> 
> Regards,
> Wojtek
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais
Index: lib/confdb.c
===================================================================
--- lib/confdb.c	(revision 2316)
+++ lib/confdb.c	(working copy)
@@ -314,7 +314,15 @@
 		if (error != CS_OK) {
 			goto error_put;
 		}
+		if (dispatch_data == NULL) {
+			if (dispatch_types == CONFDB_DISPATCH_ALL) {
+				break; /* exit do while cont is 1 loop */
+			} else {
+				continue; /* next poll */
+			}
+		}
 
+
 		/*
 		 * Make copy of callbacks, message data, unlock instance, and call callback
 		 * A risk of this dispatch method is that the callback routines may
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to