summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDavid Ripton <dripton@redhat.com>2013-03-14 13:41:25 -0400
committerDavid Ripton <dripton@redhat.com>2013-03-15 09:15:12 -0400
commitbb1977718d697565d79322f305a401caf82d5553 (patch)
tree02850ca347a6bee35394348e86fdc7a50d635cfc /plugins
parent2830ef14eca5695e796e8e3104528bbc8766bafa (diff)
downloadnova-bb1977718d697565d79322f305a401caf82d5553.tar.gz
nova-bb1977718d697565d79322f305a401caf82d5553.tar.xz
nova-bb1977718d697565d79322f305a401caf82d5553.zip
Fix db archiving bug with foreign key constraints.
Fixes bug 1137977 A few Nova tables have foreign key constraints on other tables. Deleting a row whose id is referenced as an enforced foreign key for another table results in an error. The fix is to detect the IntegrityError when we attempt to delete a row, and exit from archive_deleted_rows_for_table early. The parent archive_deleted_rows function will continue deleting from other tables, including the one whose dependence on this row caused the IntegrityError, and things will eventually sort themselves out. Change-Id: I0afdfe0778057abc5fd269a20bfa4c4ca3a7b003
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions