[sheepdog] [PATCH 1/4] sheep: remove print_node_list

Liu Yuan namei.unix at gmail.com
Sat Jun 2 22:25:19 CEST 2012


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

This is useless, since cluster driver already print node list.

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 sheep/group.c |   15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index b2bb0fd..c2679f2 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -62,19 +62,6 @@ struct vdi_bitmap_work {
 	struct sd_node members[];
 };
 
-#define print_node_list(nodes, nr_nodes)			\
-({								\
-	char __name[128];					\
-	int __i;						\
-	for (__i = 0; __i < (nr_nodes); __i++) {		\
-		dprintf("%c ip: %s, port: %d\n",		\
-			is_myself(nodes[__i].addr, nodes[__i].port) ? 'l' : ' ', \
-			addr_to_str(__name, sizeof(__name),	\
-				    nodes[__i].addr, nodes[__i].port), \
-			nodes[__i].port);			\
-	}							\
-})
-
 static struct vnode_info *current_vnode_info;
 
 static size_t get_join_message_size(struct join_message *jm)
@@ -218,8 +205,6 @@ struct vnode_info *alloc_vnode_info(struct sd_node *nodes, size_t nr_nodes)
 {
 	struct vnode_info *vnode_info;
 
-	print_node_list(nodes, nr_nodes);
-
 	vnode_info = xzalloc(sizeof(*vnode_info));
 
 	vnode_info->nr_nodes = nr_nodes;
-- 
1.7.10.2




More information about the sheepdog mailing list