[sheepdog] [PATCH 3/3] sheep: remove finish_join()

Liu Yuan namei.unix at gmail.com
Fri Aug 30 13:43:40 CEST 2013


Just call sockfd_cache_add_group directly.

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 sheep/group.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index aff0ca2..2b37090 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -565,11 +565,6 @@ static void setup_backend_store(const struct cluster_info *cinfo)
 	}
 }
 
-static void finish_join(const struct sd_node *nodes, size_t nr_nodes)
-{
-	sockfd_cache_add_group(nodes, nr_nodes);
-}
-
 static void get_vdis(const struct sd_node *nodes, size_t nr_nodes,
 		     const struct sd_node *joined)
 {
@@ -639,7 +634,7 @@ static void update_cluster_info(const struct cluster_info *cinfo,
 		setup_backend_store(cinfo);
 
 	if (node_is_local(joined))
-		finish_join(nodes, nr_nodes);
+		sockfd_cache_add_group(nodes, nr_nodes);
 
 	old_vnode_info = main_thread_get(current_vnode_info);
 	main_thread_set(current_vnode_info,
-- 
1.7.9.5




More information about the sheepdog mailing list