pageserver: create timelines/ dir when configuring secondary location

This commit is contained in:
John Spray
2023-10-24 17:07:44 +01:00
parent 8135cd755d
commit 8506008d95

View File

@@ -919,7 +919,7 @@ impl TenantManager {
// safely be recreated next time this tenant location is configured.
unsafe_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_id, &new_location_config)
.await