address FIXME in tenant_attach regarding tenant config

This commit is contained in:
Christian Schwarz
2022-11-24 10:10:09 -05:00
parent e3f4c0e4ac
commit 77fea61fcc

View File

@@ -529,9 +529,9 @@ impl Tenant {
tenant_id: TenantId,
remote_storage: &GenericRemoteStorage,
) -> anyhow::Result<Arc<Tenant>> {
// FIXME: where to get tenant config when attaching? This will just fill in
// the defaults
let tenant_conf = Self::load_tenant_config(conf, tenant_id)?;
// XXX: Attach should provide the config, especially during tenant migration.
// See https://github.com/neondatabase/neon/issues/1555
let tenant_conf = TenantConfOpt::default();
let wal_redo_manager = Arc::new(PostgresRedoManager::new(conf, tenant_id));
let tenant = Arc::new(Tenant::new(