[sheepdog] [PATCH] sheep: don't try to get vdi bitmap when cluster not formated

Liu Yuan namei.unix at gmail.com
Wed May 30 10:00:02 CEST 2012


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

This will speed up nodes setup a lot for the first time

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

diff --git a/sheep/group.c b/sheep/group.c
index bdea350..8818c0c 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -682,6 +682,7 @@ static void update_cluster_info(struct join_message *msg,
 	}
 
 	if (!sys_stat_ok() &&
+	    !sys_stat_wait_format() &&
 	    (msg->cluster_status == SD_STATUS_OK ||
 	     msg->cluster_status != SD_STATUS_HALT)) {
 		int array_len = nr_nodes * sizeof(struct sd_node);
-- 
1.7.10.2




More information about the sheepdog mailing list