Merge "db: Don't inherit cache for DeleteFromSelect"

This commit is contained in:
Zuul 2023-09-15 20:40:07 +00:00 committed by Gerrit Code Review
commit 2de1932b97
2 changed files with 2 additions and 10 deletions

View File

@ -1470,6 +1470,8 @@ def image_tag_get_all(context, image_id, session=None):
class DeleteFromSelect(sa_sql.expression.UpdateBase):
inherit_cache = False
def __init__(self, table, select, column):
self.table = table
self.select = select

View File

@ -185,16 +185,6 @@ class WarningsFixture(pyfixtures.Fixture):
category=sqla_exc.SAWarning,
)
# ...but filter everything out until we get around to fixing them
# TODO(stephenfin): Fix all of these
warnings.filterwarnings(
'ignore',
module='glance',
category=sqla_exc.SAWarning,
message='Class DeleteFromSelect will not make use of SQL ',
)
self.addCleanup(self._reset_warning_filters)
def _reset_warning_filters(self):