From 30bb2ee1b08cf6dc9eeaff6b77ab9ae2a27283b6 Mon Sep 17 00:00:00 2001 From: Vishesh Date: Fri, 12 Apr 2024 18:48:44 +0530 Subject: [PATCH] Fixup 4.19 build issue --- .../orchestration/VolumeOrchestrator.java | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java b/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java index 5c79fb64d8d4..e49616d06ca7 100644 --- a/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java +++ b/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java @@ -880,32 +880,6 @@ public DiskProfile allocateRawVolume(Type type, String name, DiskOffering offeri return diskProfile; } - @Override - public void saveVolumeDetails(Long diskOfferingId, Long volumeId) { - List volumeDetailsVO = new ArrayList<>(); - DiskOfferingDetailVO bandwidthLimitDetail = _diskOfferingDetailDao.findDetail(diskOfferingId, Volume.BANDWIDTH_LIMIT_IN_MBPS); - if (bandwidthLimitDetail != null) { - volumeDetailsVO.add(new VolumeDetailVO(volumeId, Volume.BANDWIDTH_LIMIT_IN_MBPS, bandwidthLimitDetail.getValue(), false)); - } else { - VolumeDetailVO bandwidthLimit = _volDetailDao.findDetail(volumeId, Volume.BANDWIDTH_LIMIT_IN_MBPS); - if (bandwidthLimit != null) { - _volDetailDao.remove(bandwidthLimit.getId()); - } - } - DiskOfferingDetailVO iopsLimitDetail = _diskOfferingDetailDao.findDetail(diskOfferingId, Volume.IOPS_LIMIT); - if (iopsLimitDetail != null) { - volumeDetailsVO.add(new VolumeDetailVO(volumeId, Volume.IOPS_LIMIT, iopsLimitDetail.getValue(), false)); - } else { - VolumeDetailVO iopsLimit = _volDetailDao.findDetail(volumeId, Volume.IOPS_LIMIT); - if (iopsLimit != null) { - _volDetailDao.remove(iopsLimit.getId()); - } - } - if (!volumeDetailsVO.isEmpty()) { - _volDetailDao.saveDetails(volumeDetailsVO); - } - } - private DiskProfile allocateTemplatedVolume(Type type, String name, DiskOffering offering, Long rootDisksize, Long minIops, Long maxIops, VirtualMachineTemplate template, VirtualMachine vm, Account owner, long deviceId, String configurationId) { assert (template.getFormat() != ImageFormat.ISO) : "ISO is not a template.";