[sheepdog] [PATCH] zk: wait for session timeout if previous zk path exists at startup

Liu Yuan namei.unix at gmail.com
Thu May 30 05:12:20 CEST 2013


On 05/30/2013 11:03 AM, Kai Zhang wrote:
> 
> On May 30, 2013, at 10:46 AM, Liu Yuan <namei.unix at gmail.com
> <mailto:namei.unix at gmail.com>> wrote:
> 
>> Simply call zk_delete_node() on this node works better?
> 
> zk_delete_node() does work fine now in a precondition that sheep uses ip
> and port as zk path and tries to bind addr before zk_join.
> 
> But I think it would be better that not introducing this coupling.
> 

I think this assumption works fine and is not a big fuss. If we use
another scheme to represent sheep, we can reconsider the code. For now,
we should do what is optimal.

Thanks,
Yuan




More information about the sheepdog mailing list