mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
VolumeObject.processEvent for ImageCache should only change state in
volume_store_ref, not volume table itself.
This commit is contained in:
parent
b9378ae5ad
commit
5be7f7ddb1
@ -186,6 +186,10 @@ public class VolumeObject implements VolumeInfo {
|
||||
}
|
||||
try {
|
||||
Volume.Event volEvent = null;
|
||||
if ( this.dataStore.getRole() == DataStoreRole.ImageCache){
|
||||
ojbectInStoreMgr.update(this, event);
|
||||
return;
|
||||
}
|
||||
if (this.dataStore.getRole() == DataStoreRole.Image) {
|
||||
ojbectInStoreMgr.update(this, event);
|
||||
if (event == ObjectInDataStoreStateMachine.Event.CreateRequested) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user