The extended snapshots extension makes a separate db request for
snapshots which is horribly inefficent. In addition it causes an
issue when using all_tenants=1, because the second request doesn't
pass in the filter. Fix this by caching the snapshot in the request
object like we do for volumes and retrieve the cached object in the
extension.
Reviewed: https:/ /review. openstack. org/115436 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=4f0d1d36136 bcb33f578b29998 12f36cadd71cec
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4f0d1d36136bcb3 3f578b2999812f3 6cadd71cec
Author: Vishvananda Ishaya <email address hidden>
Date: Tue Aug 19 16:59:02 2014 -0700
Cache snapshots in request for extension
The extended snapshots extension makes a separate db request for
snapshots which is horribly inefficent. In addition it causes an
issue when using all_tenants=1, because the second request doesn't
pass in the filter. Fix this by caching the snapshot in the request
object like we do for volumes and retrieve the cached object in the
extension.
Change-Id: Ia943438c8d48ac cb7f62c43f07642 c3da2fe34ab
Resolves-bug: #1358960