mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-12 23:36:52 +00:00
layout: prepare for write sets
This commit is contained in:
+1
-2
@@ -449,8 +449,7 @@ impl System {
|
||||
.iter()
|
||||
.map(|(_, h)| {
|
||||
let pn = layout.current().nodes_of(h, replication_factor);
|
||||
pn.iter()
|
||||
.filter(|x| nodes.get(x).map(|n| n.is_up).unwrap_or(false))
|
||||
pn.filter(|x| nodes.get(x).map(|n| n.is_up).unwrap_or(false))
|
||||
.count()
|
||||
})
|
||||
.collect::<Vec<usize>>();
|
||||
|
||||
Reference in New Issue
Block a user