[sheepdog] [PATCH] sheep: simplify the cluster driver interface for blocking events

Liu Yuan namei.unix at gmail.com
Wed Jun 6 04:45:12 CEST 2012


On 06/05/2012 08:07 PM, Christoph Hellwig wrote:

>  		sd_leave_handler(&cevent->sender.ent, entries, nr_cpg_nodes);
>  		break;
>  	case COROSYNC_EVENT_TYPE_BLOCK:
> -		if (cpg_node_equal(&cevent->sender, &this_node) &&
> -		    !cevent->callbacked) {
> -			sd_block_handler();
> -			cevent->callbacked = 1;
> -		}
> +		sd_block_handler(&cevent->sender.ent);
>  
> -		/* block the rest messages until unblock message comes */
> +		/* block other messages until the unblock message comes */
>  		return 0;
>  	case COROSYNC_EVENT_TYPE_NOTIFY:
>  		sd_notify_handler(&cevent->sender.ent, cevent->msg,


Why callbacked isn't removed as in zookeeper and accord driver?

Thanks,
Yuan



More information about the sheepdog mailing list