Change in ovirt-engine[master]: core: util for removing overlaps in ranges

mkolesni at redhat.com mkolesni at redhat.com
Mon Jun 16 06:13:19 UTC 2014


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 <mmucha at redhat.com>
---
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 <mmucha at redhat.com>
Gerrit-Reviewer: Martin Mucha <mmucha at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Yevgeny Zaspitsky <yzaspits at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list