Total number of voters (self + voter peers). Learners are excluded. This value drives quorum math and so must never grow transiently while the learner is catching up — that is exactly the safety property the learner phase is designed to give.
(&self)
| 68 | /// never grow transiently while the learner is catching up — that is |
| 69 | /// exactly the safety property the learner phase is designed to give. |
| 70 | pub fn cluster_size(&self) -> usize { |
| 71 | self.peers.len() + 1 |
| 72 | } |
| 73 | |
| 74 | /// Quorum size: `floor(n/2) + 1` over the voter set. |
| 75 | pub fn quorum(&self) -> usize { |
no test coverage detected