[sheepdog] [PATCH] use have_enough_zones() instead of inline expresion
Dietmar Maurer
dietmar at proxmox.com
Thu Jul 19 12:23:34 CEST 2012
To make it work with new quorum mode.
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
sheep/group.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sheep/group.c b/sheep/group.c
index 1961ae9..2c75e66 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -835,7 +835,7 @@ static void update_cluster_info(struct join_message *msg,
put_vnode_info(old_vnode_info);
if (sys_stat_halt()) {
- if (current_vnode_info->nr_zones >= sys->nr_copies)
+ if (have_enough_zones())
sys_stat_set(SD_STATUS_OK);
}
--
1.7.2.5
More information about the sheepdog
mailing list