mirror of https://github.com/apache/cloudstack.git
fix compile
This commit is contained in:
parent
3eb34d082d
commit
f87eed5b79
|
|
@ -1139,6 +1139,9 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
} catch (ConcurrentOperationException e) {
|
||||
s_logger.debug("move volume failed", e);
|
||||
throw new CloudRuntimeException("move volume failed", e);
|
||||
} catch (StorageUnavailableException e) {
|
||||
s_logger.debug("move volume failed", e);
|
||||
throw new CloudRuntimeException("move volume failed", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1344,7 +1347,11 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
if (liveMigrateVolume) {
|
||||
newVol = liveMigrateVolume(vol, destPool);
|
||||
} else {
|
||||
newVol = _volumeMgr.migrateVolume(vol, destPool);
|
||||
try {
|
||||
newVol = _volumeMgr.migrateVolume(vol, destPool);
|
||||
} catch (StorageUnavailableException e) {
|
||||
s_logger.debug("Failed to migrate volume", e);
|
||||
}
|
||||
}
|
||||
return newVol;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue