From 3530674210fbb477e1910b8b06d8fa0c0cba8b25 Mon Sep 17 00:00:00 2001 From: Hellblazer Date: Tue, 11 Jun 2024 07:20:26 -0700 Subject: [PATCH] generic gate on view bootstrapping --- .../java/com/salesforce/apollo/fireflies/ViewManagement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fireflies/src/main/java/com/salesforce/apollo/fireflies/ViewManagement.java b/fireflies/src/main/java/com/salesforce/apollo/fireflies/ViewManagement.java index 2408ae7fc..1ef93bf39 100644 --- a/fireflies/src/main/java/com/salesforce/apollo/fireflies/ViewManagement.java +++ b/fireflies/src/main/java/com/salesforce/apollo/fireflies/ViewManagement.java @@ -374,7 +374,7 @@ boolean joined() { * start a view change if there are any offline members or joining members */ void maybeViewChange() { - if (context.size() == 1 && joins.size() < 3) { + if (context.size() == 1 && joins.size() < context.getRingCount() - 1) { log.info("Do not have minimum cluster size: {} required: {} for: {} on: {}", joins.size() + context.size(), 4, currentView(), node.getId()); view.scheduleViewChange();