From c22afd71c265ee744fd9ca0cdd2f014c4bd9175e Mon Sep 17 00:00:00 2001 From: anthony Date: Thu, 11 Nov 2010 13:45:17 -0800 Subject: [PATCH] bug 6987: do not delete template from secondary storage in 2.1.x , it is needed by snapshot status 6987: resolved fixed --- .../src/com/cloud/storage/download/DownloadMonitorImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/com/cloud/storage/download/DownloadMonitorImpl.java b/server/src/com/cloud/storage/download/DownloadMonitorImpl.java index 582e0f58f9e..ba6f4d6d1ae 100644 --- a/server/src/com/cloud/storage/download/DownloadMonitorImpl.java +++ b/server/src/com/cloud/storage/download/DownloadMonitorImpl.java @@ -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"); }