Signed-off-by: FUJITA Tomonori <[email protected]>
---
collie/group.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/collie/group.c b/collie/group.c
index 48ead9e..e4f78da 100644
--- a/collie/group.c
+++ b/collie/group.c
@@ -160,7 +160,7 @@ static void get_node_list(struct sd_node_req *req,
rsp->nr_nodes = nr_nodes;
rsp->local_idx = get_node_idx(&sys->this_node, data, nr_nodes);
- if (list_empty(&sys->sd_node_list)) {
+ if (!nr_nodes) {
rsp->master_idx = -1;
return;
}
--
1.7.0
--
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog