[sheepdog] [PATCH v2 0/3] simplify join process

MORITA Kazutaka morita.kazutaka at gmail.com
Thu Jul 4 09:56:27 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

v2:
 - fix style problems
 - replace nr_members with nr_nodes
 - explain that 'nodes' doesn't contain 'joining' in sd_check_join_cb
 - fix unit test

This is the first series to refactor sheep/group.c and the cluster
drivers.  This simplifies the current join process a lot and will
improve code readability.  The other changes like removing a master
will be sent after this series is merged.

The first two patches prepare for the third one.

MORITA Kazutaka (3):
  sheep: split cluster_info into system_info and cluster_info
  sheep: access config entries with one function call
  sheep: start cluster if all the nodes in the previous epoch are
    gathered

 include/internal_proto.h      |   48 ++---
 include/shepherd.h            |    5 +-
 sheep/cluster.h               |    3 +-
 sheep/cluster/corosync.c      |   16 +-
 sheep/cluster/local.c         |   21 +-
 sheep/cluster/shepherd.c      |   32 +--
 sheep/cluster/zookeeper.c     |   20 +-
 sheep/config.c                |   56 ++---
 sheep/group.c                 |  456 ++++++++++-------------------------------
 sheep/ops.c                   |   55 ++---
 sheep/recovery.c              |    7 +-
 sheep/request.c               |   24 +--
 sheep/sheep.c                 |    4 +-
 sheep/sheep_priv.h            |   21 +-
 sheep/store.c                 |    6 +-
 sheep/vdi.c                   |    2 +-
 shepherd/shepherd.c           |    8 +-
 tests/functional/001          |   13 --
 tests/functional/001.out      |   19 +-
 tests/functional/002          |   14 --
 tests/functional/002.out      |   18 +-
 tests/functional/003          |   14 --
 tests/functional/003.out      |   18 +-
 tests/functional/004          |   16 --
 tests/functional/004.out      |   39 +---
 tests/functional/005          |   17 --
 tests/functional/005.out      |   45 +---
 tests/functional/060          |   17 +-
 tests/unit/sheep/mock_sheep.c |    2 +-
 29 files changed, 239 insertions(+), 777 deletions(-)

-- 
1.7.9.5




More information about the sheepdog mailing list