Mike Kolesnik has submitted this change and it was merged. Change subject: core: util for removing overlaps in ranges ......................................................................
core: util for removing overlaps in ranges user defined MacPool ranges can contain overlaps. Previously this was handled by adding each MAC from each mac range into HashSet. This was inefficient and can cause lot of MACs being initialized pointlessly. This util takes N ranges and transform it into M ranges (M<=N) where are no overlaps. Change-Id: Id7dbacd11b610a5885d574356a695c6e879dcdbc Bug-Url: https://bugzilla.redhat.com/1063064 Signed-off-by: Martin Mucha <[email protected]> --- A backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/DisjointRanges.java A backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/DisjointRangesTest.java 2 files changed, 126 insertions(+), 0 deletions(-) Approvals: Mike Kolesnik: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/26403 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id7dbacd11b610a5885d574356a695c6e879dcdbc Gerrit-PatchSet: 21 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Mucha <[email protected]> Gerrit-Reviewer: Martin Mucha <[email protected]> Gerrit-Reviewer: Mike Kolesnik <[email protected]> Gerrit-Reviewer: Moti Asayag <[email protected]> Gerrit-Reviewer: Yevgeny Zaspitsky <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
