cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject git commit: updated refs/heads/master to c05cda0
Date Wed, 19 Nov 2014 23:59:01 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 0e3aebbb9 -> c05cda0d2


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/c05cda0d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c05cda0d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c05cda0d

Branch: refs/heads/master
Commit: c05cda0d28d86bb0f0b87cf37d0828a0717b9045
Parents: 0e3aebb
Author: Edison Su <sudison@gmail.com>
Authored: Mon Nov 17 14:35:48 2014 -0800
Committer: Edison Su <sudison@gmail.com>
Committed: Wed Nov 19 15:58:47 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/c05cda0d/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());
             }


Mime
View raw message