Arik Hadas has uploaded a new change for review.

Change subject: core: fix regression that cleared run once flag
......................................................................

core: fix regression that cleared run once flag

We store a flag that indicates whether the VM is run in run once mode or
not. The batch updates in VdsUpdateRuntimeInfo didn't update this flag
correctly, which caused it to be cleared always by the monitoring.

This patch fix this regression by adding the run-once attribute to the
mapper that is used by the batch updates of VmDynamic.

Change-Id: Ifc2bfe9c500f649dff39f4bbfae6d4b7e57cf883
Signed-off-by: Arik Hadas <aha...@redhat.com>
---
M 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDynamicDAODbFacadeImpl.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/30/22730/1

diff --git 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDynamicDAODbFacadeImpl.java
 
b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDynamicDAODbFacadeImpl.java
index 4950bb3..28531c1 100644
--- 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDynamicDAODbFacadeImpl.java
+++ 
b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDynamicDAODbFacadeImpl.java
@@ -222,6 +222,7 @@
                         .addValue("guest_agent_nics_hash", 
entity.getGuestAgentNicsHash())
                         .addValue("last_watchdog_event", 
entity.getLastWatchdogEvent())
                         .addValue("last_watchdog_action", 
entity.getLastWatchdogAction())
+                        .addValue("is_run_once", entity.isRunOnce())
                         .addValue("cpu_name", entity.getCpuName());
 
                 return paramValue;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifc2bfe9c500f649dff39f4bbfae6d4b7e57cf883
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <aha...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to