cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [1/2] git commit: updated refs/heads/object_store to 93be5ad
Date Tue, 21 May 2013 04:26:55 GMT
Updated Branches:
  refs/heads/object_store b9378ae5a -> 93be5ada9


VolumeObject.processEvent for ImageCache should only change state in
volume_store_ref, not volume table itself.

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

Branch: refs/heads/object_store
Commit: 5be7f7ddb113b09a062a7e9fd668002c944ad800
Parents: b9378ae
Author: Min Chen <min.chen@citrix.com>
Authored: Mon May 20 21:25:59 2013 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Mon May 20 21:25:59 2013 -0700

----------------------------------------------------------------------
 .../cloudstack/storage/volume/VolumeObject.java    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5be7f7dd/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeObject.java
----------------------------------------------------------------------
diff --git a/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeObject.java
b/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeObject.java
index 77bce63..e1f0180 100644
--- a/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeObject.java
+++ b/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeObject.java
@@ -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) {


Mime
View raw message