pageserver: create timelines/ dir when configuring secondary location

This commit is contained in:
John Spray
2023-10-24 17:07:44 +01:00
parent 201954c12c
commit d7edaea444

View File

@@ -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