[sheepdog] [PATCH] sheep: fix compare statement in sd_check_join_cb
Yunkai Zhang
yunkai.me at gmail.com
Mon Jul 23 10:54:16 CEST 2012
From: Yunkai Zhang <qiushu.zyk at taobao.com>
Signed-off-by: Yunkai Zhang <qiushu.zyk 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 87e5663..3c0fe9b 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -938,7 +938,7 @@ enum cluster_join_result sd_check_join_cb(struct sd_node *joining, void *opaque)
strcpy((char *)jm->store, sd_store->name);
if (jm->cluster_status != SD_STATUS_OK &&
- (ret == CJ_RES_SUCCESS || CJ_RES_JOIN_LATER))
+ (ret == CJ_RES_SUCCESS || ret == CJ_RES_JOIN_LATER))
format_exceptional_node_list(jm);
return ret;
}
--
1.7.10.4
More information about the sheepdog
mailing list