[sheepdog] [PATCH 1/4] zookeeper: remove unneccessary zk operation

Kai Zhang kyle at zelin.io
Sat Jul 6 04:25:39 CEST 2013


On Jul 6, 2013, at 10:17 AM, Liu Yuan <namei.unix at gmail.com> wrote:

> Only there is only one sheep (who sends BLOCK) will have block->callbacked set
> true. We have to update all the state of sheep from blocked to unblock, we need
> to broadcast notify.

I think we can update all the state of sheep from blocked to unblock by broadcasting
'UNBLOCK'. But currently, we broadcast 'UNBLOCK' and 'NOTIFY'.
I think we can merge them.

One 'UNBLOCK' can act as the same as before except reduce on broadcast action.

Thanks,
Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130706/f71389f8/attachment-0004.html>


More information about the sheepdog mailing list