Skip to content

Commit cd02ceb

Browse files
committed
volume-upload: gc thread to clean partially uploaded files
Added state transitions from error/abandoned to destroyed
1 parent ca0f9de commit cd02ceb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎api/src/com/cloud/storage/Volume.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public String getDescription() {
111111
s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadInProgress, Event.OperationSucceeded, Uploaded, null));
112112
s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadInProgress, Event.OperationFailed, UploadError, null));
113113
s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadInProgress, Event.OperationTimeout, UploadError, null));
114+
s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadError, Event.DestroyRequested, Destroy, null));
115+
s_fsm.addTransition(new StateMachine2.Transition<State, Event>(UploadAbandoned, Event.DestroyRequested, Destroy, null));
114116
}
115117
}
116118

0 commit comments

Comments
 (0)