Eli Mesika has submitted this change and it was merged.

Change subject: core: Database restore script complains about ...
......................................................................


core: Database restore script complains about ...

Database restore script complains about existing entries and fails horribly

This patch fixes a bug when restoring an existing DB.
The problem was that "Drop Database" command was used while it was
executed from the active database, it caused the drop to fail since some
objects were locked and the restore  generated lots of error while
trying to create duplicate objects.
Solution is to use the built-in dropdb function instead the "Drop
Database" SQL statement.

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

Approvals:
  Eli Mesika: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I636f269e1f6094e7fc7f55ab7fddacf6a33926ba
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to