bug 6987:

do not delete template from secondary storage in 2.1.x , it is needed by snapshot

status 6987: resolved fixed
This commit is contained in:
anthony 2010-11-11 13:45:17 -08:00
parent 7a42f9c96e
commit c22afd71c2
1 changed files with 3 additions and 3 deletions

View File

@ -485,9 +485,9 @@ public class DownloadMonitorImpl implements DownloadMonitor {
for (String uniqueName: templateInfo.keySet()) {
TemplateInfo tInfo = templateInfo.get(uniqueName);
DeleteTemplateCommand dtCommand = new DeleteTemplateCommand(tInfo.getInstallPath());
long result = send(sserverId, dtCommand, null);
s_logger.info("Deleted template " + tInfo.getTemplateName() + " on secondary storage " + sserverId + " since it isn't in the database, result=" + result);
//DeleteTemplateCommand dtCommand = new DeleteTemplateCommand(tInfo.getInstallPath());
//long result = send(sserverId, dtCommand, null);
s_logger.info("Template " + tInfo.getTemplateName() + " is removed in DB, but we still keep it in Secondary Storage in case snapshot will use it");
}