From 234c5a376bef74bcd1af07d4be8adc69715f1af5 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Fri, 2 Dec 2022 02:38:36 +0100 Subject: [PATCH] [sqlalchemy-20] Add missing DB context decorator This fixes two queries still being executed without the context decorator, which is causing warning messages. Closes-Bug: #1995738 Change-Id: I61692e09119751ac7e19cecf6bf0b4b3a9fb38c7 --- neutron/quota/resource.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/quota/resource.py b/neutron/quota/resource.py index 40757b8746e..da28d992202 100644 --- a/neutron/quota/resource.py +++ b/neutron/quota/resource.py @@ -255,6 +255,7 @@ class TrackedResource(BaseResource): {'project_id': project_id, 'resource': self.name}) return usage_info + @db_api.CONTEXT_WRITER def resync(self, context, project_id): if (project_id not in self._out_of_sync_projects or not self._track_resource_events):