diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-27 16:20:19 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-27 16:22:27 +0100 |
commit | c539077d30809c9d2232aa0fe107a9652dcb7c26 (patch) | |
tree | e80971cbc50f708f8d8186cbe354ac5c0d917f73 | |
parent | 11e6fef93ce3ca56584fc99223b71da77d320dd7 (diff) | |
download | garage-c539077d30809c9d2232aa0fe107a9652dcb7c26.tar.gz garage-c539077d30809c9d2232aa0fe107a9652dcb7c26.zip |
cli: remove historic layout info from status
-rw-r--r-- | src/garage/cli/cmd.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/garage/cli/cmd.rs b/src/garage/cli/cmd.rs index 08ed00cf..4d1306b6 100644 --- a/src/garage/cli/cmd.rs +++ b/src/garage/cli/cmd.rs @@ -91,15 +91,6 @@ pub async fn cmd_status(rpc_cli: &Endpoint<SystemRpc, ()>, rpc_host: NodeID) -> Some(NodeRoleV(Some(cfg))) => Some(cfg), _ => None, }); - let historic_role = - layout - .old_versions - .iter() - .rev() - .find_map(|x| match x.roles.get(&adv.id) { - Some(NodeRoleV(Some(cfg))) => Some(cfg), - _ => None, - }); if let Some(cfg) = prev_role { healthy_nodes.push(format!( "{id:?}\t{host}\t{addr}\t[{tags}]\t{zone}\tdraining metadata...", @@ -109,15 +100,6 @@ pub async fn cmd_status(rpc_cli: &Endpoint<SystemRpc, ()>, rpc_host: NodeID) -> tags = cfg.tags.join(","), zone = cfg.zone, )); - } else if let Some(cfg) = historic_role { - healthy_nodes.push(format!( - "{id:?}\t{host}\t{addr}\t[{tags}]\t{zone}\tremoved, metadata drained", - id = adv.id, - host = adv.status.hostname, - addr = adv.addr, - tags = cfg.tags.join(","), - zone = cfg.zone, - )); } else { let new_role = match layout.staging.get().roles.get(&adv.id) { Some(NodeRoleV(Some(_))) => "pending...", |