]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reservations: Don't count usage if resource is unlimited
authorSalvatore Orlando <salv.orlando@gmail.com>
Fri, 28 Aug 2015 15:55:42 +0000 (08:55 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 11 Sep 2015 21:44:21 +0000 (14:44 -0700)
commit3c9482eb78b8a1e459ea9876a3b9a977690fce0d
tree88c0ba5b2b56898030f5aa85785a0f4569ed6573
parent14ef151fe0ca193c341098fcd3910d5e523c140c
Reservations: Don't count usage if resource is unlimited

If a resource is unlimited (ie: limit<0) then there is no need
to verify headroom for it. This also means that there no need for
counting it; therefore it is possible to save some DB operations
by skipping the count phase.

Change-Id: Ibe9ca8a1c29fb8ba12df187c25f8f9515968a54d
Related-blueprint: better-quotas
neutron/db/quota/driver.py