commit ab6e2237bf464ec0c4c432ec6047a98cb30db6c5
Author: Michał Dulko <email address hidden>
Date: Fri Oct 23 11:59:48 2015 +0200
Eager load snapshot_metadata in *snapshot_get_all
All methods returning snapshot lists in db.sqlalchemy.api are eager
loading snapshot_metadata - besides snapshot_get_all_by_project and
snapshot_get_active_by_window. In case of the latter that fact caused
unit tests to randomly fail because of SQLAlchemy Session sometimes
getting closed before the metadata got lazy loaded. This commit adds
missing options(joinedload('snapshot_metadata')) to these queries.
Reviewed: https:/ /review. openstack. org/238866 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=ab6e2237bf4 64ec0c4c432ec60 47a98cb30db6c5
Committed: https:/
Submitter: Jenkins
Branch: master
commit ab6e2237bf464ec 0c4c432ec6047a9 8cb30db6c5
Author: Michał Dulko <email address hidden>
Date: Fri Oct 23 11:59:48 2015 +0200
Eager load snapshot_metadata in *snapshot_get_all
All methods returning snapshot lists in db.sqlalchemy.api are eager get_all_ by_project and get_active_ by_window. In case of the latter that fact caused joinedload( 'snapshot_ metadata' )) to these queries.
loading snapshot_metadata - besides snapshot_
snapshot_
unit tests to randomly fail because of SQLAlchemy Session sometimes
getting closed before the metadata got lazy loaded. This commit adds
missing options(
Change-Id: I72557ebc7af9f3 044046965ca79c9 fe7c15520fc
Closes-Bug: 1501838