- for non masters, if sys->synchronized is non zero, sys->sd_node_list
  should not be empty.

- for the master, confchg is called before deliver. confchg sets
  sys->synchronized and adds itself to sd_node_list.

Signed-off-by: FUJITA Tomonori <[email protected]>
---
 collie/group.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/collie/group.c b/collie/group.c
index 12ebb0d..48ead9e 100644
--- a/collie/group.c
+++ b/collie/group.c
@@ -303,9 +303,6 @@ static int is_master(void)
        if (!sys->synchronized)
                return 0;
 
-       if (list_empty(&sys->sd_node_list))
-               return 1;
-
        node = list_first_entry(&sys->sd_node_list, struct node, list);
        if (is_myself(&node->ent))
                return 1;
-- 
1.7.0

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

Reply via email to