Merge "db: Don't inherit cache for DeleteFromSelect"
This commit is contained in:
commit
2de1932b97
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue