You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/09/12 09:50:34 UTC

[GitHub] [cloudstack] DaanHoogland commented on a diff in pull request #6681: change-diskoffer: iops settings from new disk-offer should always used

DaanHoogland commented on code in PR #6681:
URL: https://github.com/apache/cloudstack/pull/6681#discussion_r968210912


##########
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java:
##########
@@ -1934,6 +1934,18 @@ private void validateVolumeReadyStateAndHypervisorChecks(VolumeVO volume, long c
         }
     }
 
+    private void setNewIopsLimits(VolumeVO volume, DiskOfferingVO newDiskOffering, Long[] newMinIops, Long[] newMaxIops) {
+        if (newDiskOffering.isCustomizedIops() != null && newDiskOffering.isCustomizedIops()) {

Review Comment:
   or `Boolean.TRUE.equals()`! I am not sure but I think the standard way is good enough. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org