pageserver: tolerate loading empty tenants from remote storage

This commit is contained in:
John Spray
2023-10-17 16:58:42 +01:00
parent 12b79f710e
commit d8e874dbdd
2 changed files with 0 additions and 8 deletions

View File

@@ -794,10 +794,6 @@ impl Tenant {
}
}
if timeline_ancestors.is_empty() {
anyhow::bail!("no valid timelines found on the remote storage")
}
// For every timeline, download the metadata file, scan the local directory,
// and build a layer map that contains an entry for each remote and local
// layer file.

View File

@@ -183,10 +183,6 @@ pub async fn list_remote_timelines(
)
.await?;
if timelines.is_empty() {
anyhow::bail!("no timelines found on the remote storage")
}
let mut timeline_ids = HashSet::new();
for timeline_remote_storage_key in timelines {