[sheepdog] [PATCH v4 0/8] redesign a new cache fd pool

Liu Yuan namei.unix at gmail.com
Wed Jun 27 09:25:31 CEST 2012


From: Liu Yuan <tailai.ly at taobao.com>

v4:
 - group idx and fd as struct sockfd for sheep_{get,put,del}_sockfd()
 - add a sub-structure for write_info
 - refactor forward_read_obj_req()
 - remove unused headers

v3:
 - fix forward_read_obj_req()

v2:
 - address some coding style problems
 - embed node_id into struct sd_node, sd_vnode
 - remove vnode_node_cmp and node_cmp, use node_id_cmp instead
 - add some more comments

Liu Yuan (8):
  sheep: redesign a new cached sockfd pool
  sheep, sockfd cache: cache more than one FD for each node
  sheep: refactor forward_write_obj_req()
  sheep: output hex for error code
  sheep: try best forward_read_obj_req()
  sheep: embed struct node_id into struct {sd_node, sd_vnode}
  sheep: use node_id_cmp to compare node
  sockfd cache: group idx and fd as as a struct

 collie/cluster.c          |    2 +-
 collie/node.c             |   14 +-
 collie/vdi.c              |   26 +--
 include/sheep.h           |   52 +++---
 lib/net.c                 |    6 +-
 sheep/Makefile.am         |    2 +-
 sheep/cluster.h           |    8 +-
 sheep/cluster/accord.c    |    3 +-
 sheep/cluster/local.c     |    2 +-
 sheep/cluster/zookeeper.c |    2 +-
 sheep/gateway.c           |  281 +++++++++++++++++++------------
 sheep/group.c             |   35 ++--
 sheep/ops.c               |    6 +-
 sheep/recovery.c          |   20 +--
 sheep/sdnet.c             |   65 --------
 sheep/sheep.c             |    2 +-
 sheep/sheep_priv.h        |   25 ++-
 sheep/sockfd_cache.c      |  399 +++++++++++++++++++++++++++++++++++++++++++++
 sheep/store.c             |   10 +-
 19 files changed, 690 insertions(+), 270 deletions(-)
 create mode 100644 sheep/sockfd_cache.c

-- 
1.7.10.2




More information about the sheepdog mailing list