Ravi Nori has posted comments on this change.

Change subject: core, engine, webadmin: Shutdown/power off operations on a VM 
would ask for an optional reason
......................................................................


Patch Set 13:

(1 comment)

http://gerrit.ovirt.org/#/c/25633/13/packaging/dbscripts/vms_sp.sql
File packaging/dbscripts/vms_sp.sql:

Line 392:       SET
Line 393:       reason = null
Line 394:       WHERE vm_guid = v_vm_guid;
Line 395: END; $procedure$
Line 396: LANGUAGE plpgsql;
> For clearing you have a separate db flow, why not for adding as well?
Hi Gilad,

We are clearing while we are doing RunVm, during Run VM we are not persisting 
VmDynamic info into the database. So we need a separate call to clear the info 
from the reason field.

We are setting reason field during Shutdown/Poweroff. During both these flows 
the VmDynamic information is persisted to the database. If I decide to use a 
separate flow for set reason field in the database, we are making one extra 
call to the database. I avoided that by modifying the call we are already 
amking to set the reason field
Line 397: 
Line 398: 
Line 399: 
Line 400: Create or replace FUNCTION DeleteVmDynamic(v_vm_guid UUID)


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I17645e5bc97a1a4d460956ec45f88524465dfd7b
Gerrit-PatchSet: 13
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <[email protected]>
Gerrit-Reviewer: Alexander Wels <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Einav Cohen <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to