Change in ovirt-engine[ovirt-engine-4.1]: core: CloneImageGroupVolumesStructure - determineSourceImage...

Code Review gerrit at ovirt.org
Tue Mar 21 09:37:16 UTC 2017


>From Tal Nisan <tnisan at redhat.com>:

Tal Nisan has submitted this change and it was merged.

Change subject: core: CloneImageGroupVolumesStructure - determineSourceImageGroup()
......................................................................


core: CloneImageGroupVolumesStructure - determineSourceImageGroup()

This patch changes the determineSourceImageGroup() method -

1. removes wrong equality by reference which was almost never true.
2. reduces an sql query, if both the parent and the template image were
Guid.Empty a db query was performed and a Guid.Empty was used as the
image group id, we can save that query.

Change-Id: I362132b991e73ae2192b3271040dbb71e028adba
Bug-Url: https://bugzilla.redhat.com/1429170
Signed-off-by: Liron Aravot <laravot at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/disk/image/CloneImageGroupVolumesStructureCommand.java
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Tal Nisan: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Liron Aravot: Verified



-- 
To view, visit https://gerrit.ovirt.org/74376
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I362132b991e73ae2192b3271040dbb71e028adba
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-4.1
Gerrit-Owner: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>


More information about the Engine-commits mailing list