diff options
author | Zuul <zuul@review.opendev.org> | 2021-11-10 17:56:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-11-10 17:56:48 +0000 |
commit | dd11972b1b265c6985a5cda2b674415e959ed6e1 (patch) | |
tree | 7856f6fdfc761ddee9ecd56b45b7a8829eda0d17 /nova/db/main/api.py | |
parent | 78d398ad91c7708d2a868ae216284b5bdcdc5ec6 (diff) | |
parent | 55fe6a7644c2a3a16714b7f42adcaf806a8f6c63 (diff) | |
download | nova-dd11972b1b265c6985a5cda2b674415e959ed6e1.tar.gz |
Merge "db: Remove models that were moved to the API database"
Diffstat (limited to 'nova/db/main/api.py')
-rw-r--r-- | nova/db/main/api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/db/main/api.py b/nova/db/main/api.py index ef9e5fb760..5ec79263df 100644 --- a/nova/db/main/api.py +++ b/nova/db/main/api.py @@ -4478,6 +4478,10 @@ def archive_deleted_rows(context=None, max_rows=None, before=None, ): continue + # skip the tables that we've since removed the models for + if tablename in models.REMOVED_TABLES: + continue + rows_archived, _deleted_instance_uuids, extras = ( _archive_deleted_rows_for_table( meta, tablename, |