[Sheepdog] [PATCH] sheep: fix vdi information lost bug

Liu Yuan namei.unix at gmail.com
Fri Nov 25 05:04:12 CET 2011


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

When sheep is in halt status, we still need to progress to get vdi
bitmap in __sd_join().

Reported-by: Jiang Wei <jiangwei at gz.iscas.ac.cn>
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 sheep/group.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 799e758..7618a06 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -687,7 +687,8 @@ static void __sd_join(struct cpg_event *cevent)
 	struct join_message *msg = w->jm;
 	int i;
 
-	if (msg->cluster_status != SD_STATUS_OK)
+	if (msg->cluster_status != SD_STATUS_OK &&
+	    msg->cluster_status != SD_STATUS_HALT)
 		return;
 
 	if (sys_stat_ok())
-- 
1.7.8.rc3




More information about the sheepdog mailing list