From d7edaea444e7f606628283f4829ca6d51a831bbd Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 24 Oct 2023 17:07:44 +0100 Subject: [PATCH] pageserver: create timelines/ dir when configuring secondary location --- pageserver/src/tenant/mgr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pageserver/src/tenant/mgr.rs b/pageserver/src/tenant/mgr.rs index db91c55526..531651823b 100644 --- a/pageserver/src/tenant/mgr.rs +++ b/pageserver/src/tenant/mgr.rs @@ -1011,7 +1011,7 @@ impl TenantManager { // safely be recreated next time this tenant location is configured. tokio::fs::create_dir_all(&timelines_path) .await - .with_context(|| format!("Creating {tenant_path}"))?; + .with_context(|| format!("Creating {timelines_path}"))?; Tenant::persist_tenant_config(self.conf, &tenant_shard_id, &new_location_config) .await