From a76a503b8b1ee792bfc5d036ab94b45d93c63b2d Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 27 Nov 2023 13:50:19 +0100 Subject: [PATCH] remove confusing no-op .take() of init_tenant_load_remote (#5923) The `Tenant::spawn()` method already `.take()`s it. I think this was an oversight in https://github.com/neondatabase/neon/pull/5580 . --- pageserver/src/tenant.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pageserver/src/tenant.rs b/pageserver/src/tenant.rs index 249a9a80c5..82afeca338 100644 --- a/pageserver/src/tenant.rs +++ b/pageserver/src/tenant.rs @@ -733,7 +733,7 @@ impl Tenant { /// async fn attach( self: &Arc, - mut init_order: Option, + init_order: Option, preload: Option, ctx: &RequestContext, ) -> anyhow::Result<()> { @@ -750,11 +750,6 @@ impl Tenant { } }; - // Signal that we have completed remote phase - init_order - .as_mut() - .and_then(|x| x.initial_tenant_load_remote.take()); - let mut timelines_to_resume_deletions = vec![]; let mut remote_index_and_client = HashMap::new();