]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Move resource usage sync functions to db backend
authorSergey Skripnick <sskripnick@mirantis.com>
Wed, 10 Jul 2013 08:55:24 +0000 (11:55 +0300)
committerSergey Skripnick <sskripnick@mirantis.com>
Thu, 8 Aug 2013 07:26:05 +0000 (10:26 +0300)
commit4d4627f9c213ca5d473b88bb21e611b93975074e
tree3b93338cc3641fce9d98a213d192e6831cc68240
parent568e75c511c4ca831d49b1b1294b2d8ba5bcac8e
Move resource usage sync functions to db backend

Resource usage sync functions was declared in cinder/quota.py, and
using db.api public methods. This functions was moved to database
backend implementation, so now sync functions can use private
methods of database backend, and session attribute can be removed
from this public methods.

Blueprint: db-session-cleanup

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