diff options
author | Mendes <mendes.oulamara@pm.me> | 2022-10-06 12:54:51 +0200 |
---|---|---|
committer | Mendes <mendes.oulamara@pm.me> | 2022-10-06 12:54:51 +0200 |
commit | 9407df60cc00fc70c10f73bc4b600085789d5353 (patch) | |
tree | f0f0e0e3ac2b89dfad99dcc7094e5e0bbe3f1a72 /src/garage | |
parent | a951b6c45273e59b98f974937aebb8ada8816ab8 (diff) | |
download | garage-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')
-rw-r--r-- | src/garage/cli/layout.rs | 6 |
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); } } } |