Tal Nisan has submitted this change and it was merged.
Change subject: core: Fix order of DB operations in RefreshHostDevicesCommand
......................................................................
core: Fix order of DB operations in RefreshHostDevicesCommand
We need to first
* Add new devices
* Update existing (with new parent)
* Remove disappeared devices safely (since no one points its parent on it)
To prevent foreign key violation on parent column.
Change-Id: Ie85680d02632e2ff45fbabee654ba7cfb66d6e99
Bug-Url:
https://bugzilla.redhat.com/show_bug.cgi?id=1261877
Signed-off-by: Martin Betak <mbetak(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/hostdev/RefreshHostDevicesCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jenkins CI: Passed CI tests
Martin Betak: Verified
Omer Frenkel: Looks good to me, approved
--
To view, visit
https://gerrit.ovirt.org/46227
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie85680d02632e2ff45fbabee654ba7cfb66d6e99
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Martin Betak <mbetak(a)redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Betak <mbetak(a)redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: Shahar Havivi <shavivi(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org