Comment 9 for bug 1179259

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

Reviewed: https://review.openstack.org/29670
Committed: http://github.com/openstack/keystone/commit/405a914db7d2938a76384821e556df9024e6c8ac
Submitter: Jenkins
Branch: master

commit 405a914db7d2938a76384821e556df9024e6c8ac
Author: Brant Knudson <email address hidden>
Date: Sat May 18 14:28:34 2013 -0500

    Clear cached engine when global engine changes

    The keystone.common.sql.core.Base class cached the global database
    engine when get_session() was called. When the global database engine
    changed to a new instance, the cached copy was used in subsequent
    calls to get_session(), leading to using the old engine and tests
    failing to run by themselves.

    This change makes it so that when the global database engine is
    changed, Base will use the new engine rather than the invalid one.

    Change-Id: I75aa3c230d9b4fd666ab8d478c9e9a27669905e8
    Fixes: Bug #1179259