]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use cached db object in volume_mig_status ext
authorVishvananda Ishaya <vishvananda@gmail.com>
Tue, 15 Apr 2014 21:29:38 +0000 (14:29 -0700)
committerVishvananda Ishaya <vishvananda@gmail.com>
Tue, 15 Apr 2014 21:29:38 +0000 (14:29 -0700)
commitcde9f72198ddb43007ae27ff8c4921b6607ef3fc
tree71f61ff2ed75a9abc4fbcdefcbcd0d1e2931bec2
parent7cd6d18c28ac552ddf4b76f75b6da470b44fc812
Use cached db object in volume_mig_status ext

There is no need to rerequest the volume object from the db in
the extension because we already have a cached copy in the request.
This can potentially save hundreds of db queries in list.

Change-Id: I46da8c7b6c2af2435d246ebd8e95d4712065f1e7
Resolves-bug: 1308255
cinder/api/contrib/volume_mig_status_attribute.py