sureshanaparti commented on code in PR #12451:
URL: https://github.com/apache/cloudstack/pull/12451#discussion_r2709057670


##########
server/src/main/java/com/cloud/storage/StorageManagerImpl.java:
##########
@@ -1558,17 +1558,21 @@ private boolean deleteDataStoreInternal(StoragePoolVO 
sPool, boolean forced) {
 
     protected String getStoragePoolNonDestroyedVolumesLog(long storagePoolId) {
         StringBuilder sb = new StringBuilder();
-        List<VolumeVO> nonDestroyedVols = 
volumeDao.findByPoolId(storagePoolId, null);
+        List<VolumeVO> nonDestroyedVols = 
volumeDao.findByPoolId(storagePoolId, null).stream().filter(vol -> 
vol.getState() != Volume.State.Destroy).collect(Collectors.toList());

Review Comment:
   @haeena I didn't check it, the filter was there earlier (added here: 
https://github.com/apache/cloudstack/pull/8649). I think, we've to rename the 
dao method then. I'll update in this PR. thanks.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to