Decrease write quorum for fully-replicated tables (buckets, API keys, ...) #919

Merged
lx merged 1 commit from hotfix/1.0.0-rc1-red-ftr-wquorum into next-v2 2025-01-27 18:19:05 +00:00

View file

@ -43,13 +43,10 @@ impl TableReplication for TableFullReplication {
}
fn write_quorum(&self) -> usize {
let nmembers = self.system.cluster_layout().current().all_nodes().len();
let max_faults = if nmembers > 1 { 1 } else { 0 };
if nmembers > max_faults {
nmembers - max_faults
} else {
if nmembers < 3 {
1
} else {
nmembers.div_euclid(2) + 1
}
}