vishesh92 commented on code in PR #8362: URL: https://github.com/apache/cloudstack/pull/8362#discussion_r1489240381
########## server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java: ########## @@ -978,8 +981,8 @@ public VolumeVO doInTransaction(TransactionStatus status) { CallContext.current().putContextParameter(Volume.class, volume.getId()); // Increment resource count during allocation; if actual creation fails, // decrement it - _resourceLimitMgr.incrementResourceCount(volume.getAccountId(), ResourceType.volume, displayVolume); - _resourceLimitMgr.incrementResourceCount(volume.getAccountId(), ResourceType.primary_storage, displayVolume, new Long(volume.getSize())); + _resourceLimitMgr.incrementVolumeResourceCount(volume.getAccountId(), displayVolume, volume.getSize(), + _diskOfferingDao.findById(volume.getDiskOfferingId())); Review Comment: Should we use `findByIdIncludingRemoved` instead? -- 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-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org