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 |