Change in ovirt-engine[master]: core: Database restore script complains about ...

emesika at redhat.com emesika at redhat.com
Mon Feb 18 07:49:02 UTC 2013


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 <emesika at redhat.com>
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 <emesika at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list