]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add the volume and snapshot gigabytes together.
authorCory Stone <corystone@gmail.com>
Mon, 25 Mar 2013 20:09:37 +0000 (15:09 -0500)
committerCory Stone <corystone@gmail.com>
Mon, 25 Mar 2013 20:09:37 +0000 (15:09 -0500)
commit1fde5a4fbc73a31453f0fe288a0b4a929d7f3026
tree6bd7353d048e031a641fa3bacb484f387f96f972
parent7d37d5846636ef2767a129f95d7d42dd12d64390
Add the volume and snapshot gigabytes together.

The quota sync functions were not working correctly for both
snapshots and volumes regarding gigabytes. Each would report
their own count as the total gigabytes.

Now the gigabytes sync is separate from the volume and snapshot
count syncs.

Fixes bug #1160004

Change-Id: Ib1200813acb6055412b3f7f6b63fa9ba2b8fa3be
cinder/db/sqlalchemy/api.py
cinder/quota.py
cinder/tests/test_quota.py