Allon Mureinik has submitted this change and it was merged.
Change subject: core: StorageDomainToPoolRelationValidator lambda
......................................................................
core: StorageDomainToPoolRelationValidator lambda
Use a lambda expression to filter the domains in
StorageDomainToPoolRelationValidator instead of a cumbersome
LinqUtils expression.
Note that this patch also provides a slight performance improvement,
as LinqUtils.filter would iterate over the entire list, while anyMatch
stops as soon as it encounters such a match.
Change-Id: If1305d000e2af4917f3e37b9ce404f5812c59d43
Signed-off-by: Allon Mureinik <amureini(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/storage/StorageDomainToPoolRelationValidator.java
1 file changed, 6 insertions(+), 16 deletions(-)
Approvals:
Tal Nisan: Looks good to me, approved
Jenkins CI: Passed CI tests
Allon Mureinik: Verified
Ala Hino: Looks good to me, but someone else must approve
--
To view, visit
https://gerrit.ovirt.org/47900
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If1305d000e2af4917f3e37b9ce404f5812c59d43
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Ala Hino <ahino(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org