pageserver: if control plane API is disabled, ignore generations

This commit is contained in:
John Spray
2023-08-29 17:18:28 +01:00
parent 000330054b
commit 265d3b4352
+4 -1
View File
@@ -145,7 +145,10 @@ pub async fn init_tenant_mgr(
let tenant_generations = match tenant_generations {
Some(g) => Some(g.await),
None => None,
None => {
info!("Control plane API not configured, tenant generations are disabled");
None
}
};
let mut dir_entries = fs::read_dir(&tenants_dir)