[sheepdog] master_idx question

Liu Yuan namei.unix at gmail.com
Fri Jul 20 07:52:47 CEST 2012


On 07/20/2012 01:37 PM, Dietmar Maurer wrote:
> What is the idea behind master_idx?
> 
>  
> 
> # collie node list
> 
> M   Id   Host:Port         V-Nodes       Zone
> 
> -    0   192.168.2.2:7000               64          1
> 
> -    1   192.168.2.2:7001               64          2
> 
> -    2   192.168.2.2:7002               64          3
> 
>  
> 
> Seems there is no master?
> 
>  
> 
> # grep master_idx sheep/*.c
> 
> sheep/group.c: node_rsp->master_idx = -1;
> 
>  
> 
> Please can someone explain?
> 

It is leftover from old code, it can be removed entirely.

Thanks,
Yuan




More information about the sheepdog mailing list