mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-04 04:30:38 +00:00
pageserver: tolerate loading empty tenants from remote storage
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user