Eli Mesika has uploaded a new change for review.

Change subject: core:unlock_entity is not locating locked snapshot
......................................................................

core:unlock_entity is not locating locked snapshot

fix caused a regression when handling disk , sql statement is prepared
but not executed

Change-Id: I4a991183517c580d651f6a0e7c92749b66a163b3
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=958370
Signed-off-by: Eli Mesika <[email protected]>
---
M backend/manager/dbscripts/dbfunctions.sh
1 file changed, 1 insertion(+), 0 deletions(-)


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

diff --git a/backend/manager/dbscripts/dbfunctions.sh 
b/backend/manager/dbscripts/dbfunctions.sh
index 8a91d3c..04ec2fa 100755
--- a/backend/manager/dbscripts/dbfunctions.sh
+++ b/backend/manager/dbscripts/dbfunctions.sh
@@ -490,6 +490,7 @@
             where a.disk_id = b.image_group_id and
                   b.image_group_id = c.device_id and
                   imagestatus = ${LOCKED} and is_plugged;"
+       psql -w -c "${CMD}" -U ${USERNAME} -d "${DATABASE}" -h "${SERVERNAME}" 
-p "${PORT}"
    elif [ "${object_type}" = "snapshot" ]; then
        CMD="select vm_id as entity_id, snapshot_id
             from snapshots a


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

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

Reply via email to