You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ed...@apache.org on 2014/11/20 00:58:36 UTC

git commit: updated refs/heads/4.5 to 5018db8

Repository: cloudstack
Updated Branches:
  refs/heads/4.5 2667855cc -> 5018db8b6


CLOUDSTACK-7945:
set removed field in snapshots table in case of snaphsot failure.

Reviewed-by: Frank


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5018db8b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5018db8b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5018db8b

Branch: refs/heads/4.5
Commit: 5018db8b62dbb9ddb6612914d828baf2f98c43bb
Parents: 2667855
Author: Edison Su <su...@gmail.com>
Authored: Mon Nov 17 14:35:48 2014 -0800
Committer: Edison Su <su...@gmail.com>
Committed: Wed Nov 19 15:58:07 2014 -0800

----------------------------------------------------------------------
 .../org/apache/cloudstack/storage/snapshot/SnapshotServiceImpl.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5018db8b/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/SnapshotServiceImpl.java
----------------------------------------------------------------------
diff --git a/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/SnapshotServiceImpl.java b/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/SnapshotServiceImpl.java
index 309f6d6..259c51e 100644
--- a/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/SnapshotServiceImpl.java
+++ b/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/SnapshotServiceImpl.java
@@ -307,6 +307,7 @@ public class SnapshotServiceImpl implements SnapshotService {
                 srcSnapshot.processEvent(Event.OperationSuccessed);
 
                 srcSnapshot.processEvent(Snapshot.Event.OperationFailed);
+                _snapshotDao.remove(srcSnapshot.getId());
             } catch (NoTransitionException e) {
                 s_logger.debug("Failed to update state: " + e.toString());
             }