Maor Lipchuk has uploaded a new change for review.

Change subject: core: Increment DB Generation when image is copied
......................................................................

core: Increment DB Generation when image is copied

Increment the DB genereation when a template image is being copied, so
the desctination Storage Domain will be updated with the Template OVF.

Change-Id: Icdd5e02387fe729195bd4b3c502636671a914e5d
Bug-Url: https://bugzilla.redhat.com/1138136
Signed-off-by: Maor Lipchuk <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyDiskCommand.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/32/35932/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyDiskCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyDiskCommand.java
index 56679d0..f29bd2d 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyDiskCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyDiskCommand.java
@@ -269,6 +269,7 @@
     @Override
     protected void endSuccessfully() {
         endCommandActions();
+        getVmStaticDAO().incrementDbGeneration(getVmTemplate().getId());
     }
 
     @Override


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icdd5e02387fe729195bd4b3c502636671a914e5d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to