cinder/cinder/db/sqlalchemy
Michał Dulko ab6e2237bf 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.

Change-Id: I72557ebc7af9f3044046965ca79c9fe7c15520fc
Closes-Bug: 1501838
2015-10-23 12:17:36 +02:00
..
migrate_repo Add placholder for migration backports in Liberty 2015-09-25 12:25:32 -06:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
api.py Eager load snapshot_metadata in *snapshot_get_all 2015-10-23 12:17:36 +02:00
models.py Generic image-volume cache 2015-09-02 17:54:07 +00:00