CS-15070: remove invalid refs from storage_pool_host_ref

This commit is contained in:
Alena Prokharchyk 2012-05-23 14:49:28 -07:00
parent 63d512b808
commit 44b88e093f
1 changed files with 2 additions and 0 deletions

View File

@ -171,3 +171,5 @@ CREATE TABLE `cloud`.`port_profile` (
`port_binding` varchar(20),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DELETE FROM `cloud`.`storage_pool_host_ref` WHERE pool_id IN (SELECT id FROM storage_pool WHERE removed IS NOT NULL);