]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Dispose DB connections between backend proc starts
authorJay S. Bryant <jsbryant@us.ibm.com>
Tue, 9 Jun 2015 22:10:18 +0000 (17:10 -0500)
committerJay S. Bryant <jsbryant@us.ibm.com>
Thu, 11 Jun 2015 03:13:01 +0000 (22:13 -0500)
commitf8149fc83f5e951b60d391741f0f9ae92c673533
tree1c33629aa7038500ac1160cfca1272e8058c367c
parent493b6c7f12a8c48cd535245bd092eeedf9c04731
Dispose DB connections between backend proc starts

Currently we do not dispose the existing DB pools before
forking off additional storage backend processes.  This can
result in timing issues and DB errors.

This change simply ensures that we do a dispose_engine() in
the loop where we are forking off processes for the storage
backends.

Change-Id: I4ce67e1ce7853fafe5318393482d841583e42098
Closes-bug: 1463580
(cherry picked from commit bb683d6ce4f8e8ad6f1ba657eac5c7f92c9ea82f)
cinder/cmd/volume.py