aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli/layout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/garage/cli/layout.rs')
-rw-r--r--src/garage/cli/layout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/cli/layout.rs b/src/garage/cli/layout.rs
index 9e5bdaea..32f637eb 100644
--- a/src/garage/cli/layout.rs
+++ b/src/garage/cli/layout.rs
@@ -190,7 +190,7 @@ pub async fn cmd_show_layout(
println!();
println!("==== PARAMETERS OF THE LAYOUT COMPUTATION ====");
- println!("Zone redundancy: {}", layout.parameters.get().zone_redundancy);
+ println!("Zone redundancy: {}", layout.staged_parameters.get().zone_redundancy);
println!();
// this will print the stats of what partitions
@@ -270,7 +270,7 @@ pub async fn cmd_config_layout(
println!("The zone redundancy must be at least 1.");
}
else {
- layout.parameters.update(LayoutParameters{ zone_redundancy: r });
+ layout.staged_parameters.update(LayoutParameters{ zone_redundancy: r });
println!("The new zone redundancy has been saved ({}).", r);
}
}