You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2020/04/02 13:42:55 UTC

[cloudstack] branch andrijapanicsb-patch-3 created (now 87f46e2)

This is an automated email from the ASF dual-hosted git repository.

andrijapanic pushed a change to branch andrijapanicsb-patch-3
in repository https://gitbox.apache.org/repos/asf/cloudstack.git.


      at 87f46e2  remove snapshotDao.remove(snapshotId);

This branch includes the following new commits:

     new 87f46e2  remove snapshotDao.remove(snapshotId);

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[cloudstack] 01/01: remove snapshotDao.remove(snapshotId);

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andrijapanic pushed a commit to branch andrijapanicsb-patch-3
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 87f46e215fcadfa91cc875cfaf0bb52c20523f45
Author: Andrija Panic <45...@users.noreply.github.com>
AuthorDate: Thu Apr 2 15:42:40 2020 +0200

    remove snapshotDao.remove(snapshotId);
---
 .../org/apache/cloudstack/storage/snapshot/DefaultSnapshotStrategy.java  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/DefaultSnapshotStrategy.java b/engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/DefaultSnapshotStrategy.java
index fba2674..baf0ec0 100644
--- a/engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/DefaultSnapshotStrategy.java
+++ b/engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/DefaultSnapshotStrategy.java
@@ -267,7 +267,6 @@ public class DefaultSnapshotStrategy extends SnapshotStrategyBase {
         boolean deletedOnSecondary = false;
         if (snapshotOnImage == null) {
             s_logger.debug(String.format("Can't find snapshot [snapshot id: %d] on backup storage", snapshotId));
-            snapshotDao.remove(snapshotId);
         } else {
             SnapshotObject obj = (SnapshotObject)snapshotOnImage;
             try {