Comment 11 for bug 1501838

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/238866
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=ab6e2237bf464ec0c4c432ec6047a98cb30db6c5
Submitter: Jenkins
Branch: master

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.

    Change-Id: I72557ebc7af9f3044046965ca79c9fe7c15520fc
    Closes-Bug: 1501838