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
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to