cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kous...@apache.org
Subject git commit: updated refs/heads/volume-upload to cd02ceb
Date Mon, 19 Jan 2015 12:33:27 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/volume-upload ca0f9de6c -> cd02ceb7a


volume-upload: gc thread to clean partially uploaded files
Added state transitions from error/abandoned to destroyed


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

Branch: refs/heads/volume-upload
Commit: cd02ceb7a19eefad43cba41ad5cbb0cccdef13d7
Parents: ca0f9de
Author: Koushik Das <koushik@apache.org>
Authored: Mon Jan 19 18:01:29 2015 +0530
Committer: Koushik Das <koushik@apache.org>
Committed: Mon Jan 19 18:01:29 2015 +0530

----------------------------------------------------------------------
 api/src/com/cloud/storage/Volume.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cd02ceb7/api/src/com/cloud/storage/Volume.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/storage/Volume.java b/api/src/com/cloud/storage/Volume.java
index dbe370c..106e4c2 100755
--- a/api/src/com/cloud/storage/Volume.java
+++ b/api/src/com/cloud/storage/Volume.java
@@ -111,6 +111,8 @@ public interface Volume extends ControlledEntity, Identity, InternalIdentity,
Ba
             s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadInProgress,
Event.OperationSucceeded, Uploaded, null));
             s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadInProgress,
Event.OperationFailed, UploadError, null));
             s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadInProgress,
Event.OperationTimeout, UploadError, null));
+            s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadError,
Event.DestroyRequested, Destroy, null));
+            s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadAbandoned,
Event.DestroyRequested, Destroy, null));
         }
     }
 


Mime
View raw message