Bug 13842 Mark the snapshots that belong to a removed secondary storage as removed.

Reviewed-By: Nitin
Status 13842: resolved fixed
This commit is contained in:
Likitha Shetty 2012-03-21 10:42:51 +05:30
parent 3ced403a88
commit 24b4007149
1 changed files with 3 additions and 1 deletions

View File

@ -19,4 +19,6 @@
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Project Defaults', 'DEFAULT', 'management-server', 'max.project.networks', '20', 'The default maximum number of networks that can be created for a project');
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Account Defaults', 'DEFAULT', 'management-server', 'max.account.networks', '20', 'The default maximum number of networks that can be created for an account');
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Account Defaults', 'DEFAULT', 'management-server', 'max.account.networks', '20', 'The default maximum number of networks that can be created for an account');
UPDATE snapshots SET removed=now() WHERE removed IS NULL AND sechost_id IN (SELECT id FROM host WHERE type='SecondaryStorage' AND removed IS NOT NULL);