[sheepdog] [PATCH] sheep: fix update_cluster_info()

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


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

Even cluster is in the halt state due to lack of live nodes, it should allow
new nodes to join in and get vdi bitmap

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

diff --git a/sheep/group.c b/sheep/group.c
index 8818c0c..caf0133 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -684,7 +684,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)) {
+	     msg->cluster_status == SD_STATUS_HALT)) {
 		int array_len = nr_nodes * sizeof(struct sd_node);
 		struct vdi_bitmap_work *w;
 
-- 
1.7.10.2




More information about the sheepdog mailing list