[sheepdog] [PATCH 2/2] sheep: check joining nodes with newer but invalid epoch

Liu Yuan namei.unix at gmail.com
Wed May 15 10:04:16 CEST 2013


On 05/14/2013 11:20 PM, MORITA Kazutaka wrote:
>  
> +	if (jm->epoch > local_epoch) {
> +		if (sys->status == SD_STATUS_WAIT_FOR_JOIN) {
> +			/* The joining node will be a master */
> +			sd_eprintf("transfer mastership (%d, %d)", jm->epoch,
> +				   local_epoch);
> +			return CJ_RES_MASTER_TRANSFER;

If sys->status == SD_STATUS_WAIT_FOR_JOIN and another node from other
cluster can join the cluster?  Why not directly check cluster ctime?

Thanks,
Yuan



More information about the sheepdog mailing list