mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-19 17:46:17 +00:00
relocalize logic for write_sets
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user