aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli/layout.rs
diff options
context:
space:
mode:
authorMendes <mendes.oulamara@pm.me>2022-10-06 12:54:51 +0200
committerMendes <mendes.oulamara@pm.me>2022-10-06 12:54:51 +0200
commit9407df60cc00fc70c10f73bc4b600085789d5353 (patch)
treef0f0e0e3ac2b89dfad99dcc7094e5e0bbe3f1a72 /src/garage/cli/layout.rs
parenta951b6c45273e59b98f974937aebb8ada8816ab8 (diff)
downloadgarage-9407df60cc00fc70c10f73bc4b600085789d5353.tar.gz
garage-9407df60cc00fc70c10f73bc4b600085789d5353.zip
Corrected two bugs:
- self.node_id_vec was not properly updated when the previous ring was empty - ClusterLayout::merge was not considering changes in the layout parameters
Diffstat (limited to 'src/garage/cli/layout.rs')
-rw-r--r--src/garage/cli/layout.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/garage/cli/layout.rs b/src/garage/cli/layout.rs
index 6b86e46d..9e5bdaea 100644
--- a/src/garage/cli/layout.rs
+++ b/src/garage/cli/layout.rs
@@ -188,6 +188,10 @@ pub async fn cmd_show_layout(
println!("No nodes have a role in the new layout.");
}
println!();
+
+ println!("==== PARAMETERS OF THE LAYOUT COMPUTATION ====");
+ println!("Zone redundancy: {}", layout.parameters.get().zone_redundancy);
+ println!();
// this will print the stats of what partitions
// will move around when we apply
@@ -267,7 +271,7 @@ pub async fn cmd_config_layout(
}
else {
layout.parameters.update(LayoutParameters{ zone_redundancy: r });
- println!("The new zone redundancy has been staged.");
+ println!("The new zone redundancy has been saved ({}).", r);
}
}
}