db: Move comment
We split the '_check_sync' helper in 'cinder.db.manage' as part of
change A comment was left in
this function which really belonged in the now-split function. Move it.
@@ -486,9 +486,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,
@@ -507,6 +504,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)
