sureshanaparti commented on code in PR #11817:
URL: https://github.com/apache/cloudstack/pull/11817#discussion_r2708370296
##########
server/src/main/java/com/cloud/storage/StorageManagerImpl.java:
##########
@@ -1558,14 +1558,18 @@ private boolean deleteDataStoreInternal(StoragePoolVO
sPool, boolean forced) {
protected String getStoragePoolNonDestroyedVolumesLog(long storagePoolId) {
StringBuilder sb = new StringBuilder();
- List<VolumeVO> nonDestroyedVols =
volumeDao.findByPoolId(storagePoolId, null).stream().filter(vol ->
vol.getState() != Volume.State.Destroy).collect(Collectors.toList());
+ List<VolumeVO> nonDestroyedVols =
volumeDao.findByPoolId(storagePoolId, null);
Review Comment:
@hsato03 the filter is `vol -> vol.getState() != Volume.State.Destroy`
removed, so not _nonDestroyedVols_ any more. please check.
--
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]