[sheepdog] [PATCH v2] sheep: rework send join message for corosync and local drivers
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri Oct 18 04:14:46 CEST 2013
At Wed, 16 Oct 2013 13:15:13 +0800,
Liu Yuan wrote:
>
> They can't send the whole struct cluster_info. Instead of doing tricks in
> send_join_request(), we just min(SD_MAX_EVENT_BUF_SIZE, join_msg_len) for
> corosync and local drivers.
>
> This patch also fixes a bug that corosync can't work with node join because
> not enough buffer allocated for join message.
>
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
> include/util.h | 3 +++
> sheep/cluster.h | 5 ++++-
> sheep/cluster/corosync.c | 7 ++++---
> sheep/cluster/local.c | 1 +
> sheep/cluster/zookeeper.c | 5 ++---
> sheep/group.c | 4 +---
> 6 files changed, 15 insertions(+), 10 deletions(-)
Applied, thanks.
Kazutaka
More information about the sheepdog
mailing list