Michael Kublin has posted comments on this change. Change subject: core: WIP : OvfDataUpdater - removal calls to updateVm/TemplateInSpm ......................................................................
Patch Set 2: I would prefer that you didn't submit this (1 inline comment) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ReconstructMasterDomainCommand.java Line 150: @SuppressWarnings("unchecked") Line 151: final List<VM> vmsInPool = (List<VM>) Backend.getInstance() Line 152: .runInternalQuery(VdcQueryType.Search, p).getReturnValue(); Line 153: Line 154: executeInNewTransaction(new TransactionMethod<Object>() { You can not write a query which will update all generations of vms of same pool. I will help you, it should be something like that: UPDATE vm_static set ovf_generation = 0 where pool_id = ....; Simple? Line 155: @Override Line 156: public Void runInTransaction() { Line 157: for (VM vm : vmsInPool) { Line 158: getVmDAO().updateVmOvfGeneration(vm.getId(), 0); -- To view, visit http://gerrit.ovirt.org/9340 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iedebceb9809dc0b11c0bbe8a2d4af63b0d848df1 Gerrit-PatchSet: 2 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: Daniel Erez <de...@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: Vered Volansky <vvola...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches