fix compile

This commit is contained in:
Edison Su 2013-08-13 15:16:23 -07:00
parent 3eb34d082d
commit f87eed5b79
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}