VolumeObject.processEvent for ImageCache should only change state in

volume_store_ref, not volume table itself.
This commit is contained in:
Min Chen 2013-05-20 21:25:59 -07:00
parent b9378ae5ad
commit 5be7f7ddb1

View File

@ -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) {