Gilad Chaplik has posted comments on this change.

Change subject: engine: watchdog - DB and logic changes
......................................................................


Patch Set 5: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateWatchdogCommand.java
Line 18:     }
Line 19: 
Line 20:     protected void executeVmCommand() {
Line 21:         List<VmDevice> watchdogs = 
getVmDeviceDao().getVmDeviceByVmIdAndType(getVmId(), 
VmDeviceType.WATCHDOG.getName());
Line 22:         if(watchdogs.isEmpty()) {
don't add the test, I was joking. it's a matter of readiness, I find it 
difficult to read, I don't trust APIs
Line 23:             //create new watchdog
Line 24:             VmDevice watchdogDevice = new VmDevice();
Line 25:             watchdogDevice.setType(VmDeviceType.WATCHDOG.getName());
Line 26:             watchdogDevice.setId(new VmDeviceId(Guid.NewGuid(), 
getVmId()));


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I813a6f97e23008d15446285998a4e9b50b456040
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <lhorn...@redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhorn...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to