Merge "db: Move comment"

This commit is contained in:
Zuul 2022-06-14 16:49:46 +00:00 committed by Gerrit Code Review
commit 70e6f12e47
1 changed files with 4 additions and 3 deletions

View File

@ -484,9 +484,6 @@ class QuotaCommands(object):
discrepancy = False
# NOTE: It's important to always get the quota first and then the
# reservations to prevent deadlocks with quota commit and rollback from
# running Cinder services.
for project in projects:
discrepancy &= self._check_project_sync(
ctxt,
@ -505,6 +502,10 @@ class QuotaCommands(object):
discrepancy = False
action_msg = ' - fixed' if do_fix else ''
# NOTE: It's important to always get the quota first and then the
# reservations to prevent deadlocks with quota commit and rollback from
# running Cinder services.
# We only want to sync existing quota usage rows
usages = self._get_usages(context, resources, project)