diff options
author | Mendes <mendes.oulamara@pm.me> | 2022-10-10 17:19:25 +0200 |
---|---|---|
committer | Mendes <mendes.oulamara@pm.me> | 2022-10-10 17:19:25 +0200 |
commit | fcf9ac674a2842b2b55d933e60af5af93dcc4592 (patch) | |
tree | 56fdbd28db4e769b5ee74f771cfa3eefa7abd2a8 /src/garage/cli | |
parent | 911eb17bd9e25f2f02fbe1de81a3384e99ea13ac (diff) | |
download | garage-fcf9ac674a2842b2b55d933e60af5af93dcc4592.tar.gz garage-fcf9ac674a2842b2b55d933e60af5af93dcc4592.zip |
Tests written in layout.rs
added staged_parameters to ClusterLayout
removed the serde(default) -> will need a migration function
Diffstat (limited to 'src/garage/cli')
-rw-r--r-- | src/garage/cli/layout.rs | 4 |
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); } } |