recycle tenant_allocator when tenant creation fails

This commit is contained in:
obdev
2023-02-24 16:23:03 +00:00
committed by ob-robot
parent b28b60e08e
commit ac2a5a0f74

View File

@ -964,6 +964,9 @@ int ObMultiTenant::create_tenant(const ObTenantMeta &meta, bool write_slog, cons
bucket_lock_.unlock(bucket_lock_idx);
}
if (OB_FAIL(ret)) {
malloc_allocator->recycle_tenant_allocator(tenant_id);
}
FLOG_INFO("finish create new tenant", K(ret), K(tenant_id), K(write_slog), K(create_step), K(bucket_lock_idx));
return ret;