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.
dataset/ETHPy150Open openstack/neutron/neutron/quota/resource_registry.py/set_resources_dirty