mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
SQL: Remove snapshot references if primary storage pool has been removed (#7205)
This commit is contained in:
parent
1a03f69a3a
commit
e61051e4fc
@ -1570,3 +1570,7 @@ CREATE VIEW `cloud`.`user_view` AS
|
||||
`cloud`.`async_job` ON async_job.instance_id = user.id
|
||||
and async_job.instance_type = 'User'
|
||||
and async_job.job_status = 0;
|
||||
|
||||
-- Remove snapshot references if primary storage pool has been removed, see github issue #7093
|
||||
DELETE FROM `cloud`.`snapshot_store_ref`
|
||||
WHERE store_role = "Primary" AND store_id IN (SELECT id FROM storage_pool WHERE removed IS NOT NULL);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user