Michael Kublin has posted comments on this change.

Change subject: core:WIP: introducing OvfAutoUpdate
......................................................................


Patch Set 3: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OvfDataUpdater.java
Line 56:                             getVmsForUpdate(DbFacade.getInstance()
Line 57:                                     .getVmDao()
Line 58:                                     
.getAllVmsForOvfUpdateForStoragePool(pool.getId()));
Line 59:                     VmCommand.updateVmInSpm(pool.getId(), 
vmsForUpdate);
Line 60:                     if (!vmsForUpdate.isEmpty()) {
Liron, it can be implemented differently today with only one query to DB.
Line 61:                         for (VM vm : vmsForUpdate) {
Line 62:                             DbFacade.getInstance()
Line 63:                                     .getVmDao()
Line 64:                                     .updateVmOvfGeneration(vm.getId(), 
vm.getStaticData().getDb_generation());


Line 109:      * returns a list of templates that are valid for update from the 
given templates list.
Line 110:      * valid template is a template which is not locked and none of 
it's disks is locked.
Line 111:      * @param templates
Line 112:      * @return
Line 113:      */
useless code
Line 114:     private List<VmTemplate> getTemplatesForUpdate(List<VmTemplate> 
templates) {
Line 115:         List<VmTemplate> toReturn = new ArrayList<VmTemplate>();
Line 116:         for (VmTemplate template : templates) {
Line 117:             if (VmTemplateStatus.Locked != template.getstatus()) {


--
To view, visit http://gerrit.ovirt.org/9328
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I9b5132300fb1f1fd94f771cab15efe5246dbeca8
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Ayal Baron <aba...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: liron aravot <liron.ara...@gmail.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to