From e61a38087d158da51f7b945d16e4749a83512ab5 Mon Sep 17 00:00:00 2001 From: Min Chen Date: Fri, 9 Aug 2013 18:11:53 -0700 Subject: [PATCH] CLOUDSTACK-4204: return a ZoneScope in picking cache storage. --- .../storage/motion/AncientDataMotionStrategy.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/AncientDataMotionStrategy.java b/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/AncientDataMotionStrategy.java index 893e9bca9bb..b76b7ee542e 100644 --- a/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/AncientDataMotionStrategy.java +++ b/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/AncientDataMotionStrategy.java @@ -182,11 +182,11 @@ public class AncientDataMotionStrategy implements DataMotionStrategy { Scope selectedScope = null; if (srcScope.getScopeId() != null) { - selectedScope = srcScope; + selectedScope = getZoneScope(srcScope); } else if (destScope.getScopeId() != null) { - selectedScope = destScope; + selectedScope = getZoneScope(destScope); } else { - s_logger.warn("Cannot find a zone-wide scope for move between cache store and image store"); + s_logger.warn("Cannot find a zone-wide scope for movement that needs a cache storage"); } return selectedScope; }