relocalize logic for write_sets

This commit is contained in:
Alex Auvolat
2025-03-25 16:35:56 +01:00
parent 514eb29874
commit d25e631a4a
3 changed files with 20 additions and 19 deletions
-13
View File
@@ -196,19 +196,6 @@ impl LayoutHelper {
self.current().nodes_of(hash).collect()
}
/// For a given hash, or for all cluster if no hash is given,
/// return for each layout version the set of nodes that writes should be sent to
/// and for which a quorum of OK responses should be awaited.
pub fn write_sets_of(&self, hash: Option<&Hash>) -> Vec<Vec<Uuid>> {
self.versions()
.iter()
.map(|x| match hash {
Some(h) => x.nodes_of(h).collect(),
None => x.all_nodes().to_vec(),
})
.collect()
}
pub fn ack_map_min(&self) -> u64 {
self.ack_map_min
}