[sheepdog] [PATCH v4 0/2] Handle pending block/notify event during reconnect

Kai Zhang kyle at zelin.io
Tue Jul 9 12:08:10 CEST 2013


v4:
- move SD_RES_CLUSTER_ERROR from sheepdog_proto.h to internal_proto.h and
  update error code to 0x91 which is larger than 0x80
- add_event() in zookeeper and send_message() in corosync now return
  SD_RES_SUCCESS on success and SD_RES_CLUSTER_ERROR on failure.
- call sd_notify_handler to finish pending notify requests during reconnect,
  but not requeue it.

v3:
- first two patches have been applied
- update comment in group.c
- block/unblock/notify return SD_RES_XXX in all cluster drivers, other than 0
  or -1
- print debug message when neccessary

v2:
- update commit log of patch 3/4

This series is to enhance the implementation of sd_reconnect_handler()
by handling pending block/notify event during reconnect.


Kai Zhang (2):
  sheep: handle block/unblock/notify error
  cluster driver: handle pending block/notify event during reconnect

 include/internal_proto.h  |    1 +
 include/sheep.h           |    1 +
 sheep/cluster.h           |   10 ++--
 sheep/cluster/corosync.c  |   16 +++----
 sheep/cluster/local.c     |   10 ++--
 sheep/cluster/shepherd.c  |   12 +++--
 sheep/cluster/zookeeper.c |   12 ++---
 sheep/group.c             |  117 ++++++++++++++++++++++++++++++++++++++++++---
 sheep/sheep_priv.h        |    8 ++++
 9 files changed, 157 insertions(+), 30 deletions(-)

--
1.7.9.5




More information about the sheepdog mailing list