def set_resources_dirty(context):
 if (not cfg.CONF.QUOTAS.track_quota_usage):
  return
 for res in get_all_resources().values():
  with context.session.begin(subtransactions=True):
   if (is_tracked(res.name) and res.dirty):
    res.mark_dirty(context)

def set_resources_dirty ( context ) : if ( not cfg . CONF . QUOTAS . track_quota_usage ) : return for res in get_all_resources ( ) . values ( ) : with context . session . begin ( subtransactions = True ) : if ( is_tracked ( res . name ) and res . dirty ) : res . mark_dirty ( context )
sets the dirty bit for resources with usage changes .