From: Liu Yuan <[email protected]>

This fixes broken cluster_sanity_check()

Signed-off-by: Liu Yuan <[email protected]>
---
 sheep/group.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 3381b44..679f120 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -423,8 +423,11 @@ static int cluster_sanity_check(struct sd_node *entries,
 
        if (sys_stat_wait_format() || sys_stat_shutdown())
                goto out;
-       /* When the joining node is newly created, we need not check anything. 
*/
-       if (nr_entries == 0)
+       /*
+        * When the joining node is newly created and we are not waiting for
+        * join we need not check anything.
+        */
+       if (nr_entries == 0 && !sys_stat_wait_join())
                goto out;
 
        if (ctime != get_cluster_ctime()) {
-- 
1.7.10.2

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to