Change in ovirt-engine[master]: core: StorageDomainToPoolRelationValidator lambda

amureini at redhat.com amureini at redhat.com
Sat Oct 31 19:34:45 UTC 2015


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 at 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 at redhat.com>
Gerrit-Reviewer: Ala Hino <ahino at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list