]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix sqlalchemy reuse in multi-backend children
authorEric Harney <eharney@redhat.com>
Wed, 11 Mar 2015 18:00:44 +0000 (14:00 -0400)
committerJohn Griffith <john.griffith@solidfire.com>
Thu, 12 Mar 2015 15:49:48 +0000 (09:49 -0600)
commit2cc0dbe3936e21f52c27bc945e2d999c40526b32
tree920b4e8288e4d773afcb45b7b6bdc2d56dd3e60c
parent51016ce02441a3153e5962c7a6a6339c28987a4c
Fix sqlalchemy reuse in multi-backend children

Multi-backend breaks because sqlalchemy objects
are shared between child backends.

When creating a new service (Base), call dispose
to reset the sqlalchemy object and connection.

Change-Id: I9d937c5b2fa850edc5523f26e031f59cad5a9e7e
Closes-Bug: #1417018
cinder/db/api.py
cinder/db/base.py
cinder/db/sqlalchemy/api.py