mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-28 16:07:06 +00:00
layout: fix test
This commit is contained in:
@@ -35,7 +35,7 @@ fn check_against_naive(cl: &LayoutVersion) -> Result<bool, Error> {
|
|||||||
}
|
}
|
||||||
for uuid in cl.nongateway_nodes() {
|
for uuid in cl.nongateway_nodes() {
|
||||||
let z = cl.get_node_zone(&uuid)?;
|
let z = cl.get_node_zone(&uuid)?;
|
||||||
let c = cl.get_node_capacity(&uuid)?;
|
let c = cl.get_node_capacity(&uuid).unwrap();
|
||||||
zone_token.insert(
|
zone_token.insert(
|
||||||
z.to_string(),
|
z.to_string(),
|
||||||
zone_token[z] + min(NB_PARTITIONS, (c / over_size) as usize),
|
zone_token[z] + min(NB_PARTITIONS, (c / over_size) as usize),
|
||||||
|
|||||||
Reference in New Issue
Block a user